Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.46 KB | None | 0 0
  1. filetype plugin indent on
  2. set tabstop=4
  3. set shiftwidth=4
  4. set softtabstop=4
  5. set expandtab
  6. set autoindent
  7.  
  8. set number
  9. set relativenumber
  10.  
  11. set updatetime=100
  12.  
  13. " autocomplete braces etc. on next line
  14. inoremap {<cr> {<cr>}<c-o><s-o>
  15. inoremap [<cr> [<cr>]<c-o>0<tab>
  16. inoremap (<cr> (<cr>)<c-o>0<tab>
  17.  
  18. tnoremap <C-w>h <C-\><C-n><C-w>h
  19. tnoremap <C-w>j <C-\><C-n><C-w>j
  20. tnoremap <C-w>k <C-\><C-n><C-w>k
  21. tnoremap <C-w>l <C-\><C-n><C-w>l
  22. tnoremap <Esc> <C-\><C-n>
  23.  
  24. " Switch between tabs easier
  25. nnoremap H gT
  26. nnoremap L gt
  27.  
  28. " Open markdown files while editing them
  29. autocmd BufEnter *.md exe 'noremap <F9> :w<enter>:!open -na "/Applications/Google Chrome.app" --args --new-window %:p<CR> <CR>'
  30.  
  31. " Make sure concealing is not on same line as cursor in LaTeX
  32. autocmd BufEnter *.tex exe ":set cocu="
  33.  
  34. " Compile and open LaTeX files while editing them
  35. autocmd BufEnter *.tex exe 'noremap <F9> :w <enter>:!pdflatex %:r.tex ; open %:r.pdf<CR>'
  36.  
  37. " Plugin stuff
  38. call plug#begin()
  39. Plug 'scrooloose/nerdtree'
  40. Plug 'vim-airline/vim-airline'
  41. Plug 'vim-airline/vim-airline-themes'
  42. Plug 'airblade/vim-gitgutter'
  43. Plug 'tpope/vim-commentary'
  44. Plug 'tpope/vim-surround'
  45. Plug 'yggdroot/indentline'
  46. Plug 'mattn/emmet-vim'
  47. Plug 'w0rp/ale'
  48. call plug#end()
  49.  
  50. let g:airline#extensions#whitespace#checks = ['indent', 'long', 'mixed-indent-file', 'conflicts' ]
  51. let g:airline_solarized_bg='dark'
  52. let g:airline_powerline_fonts=1
  53. let g:gitgutter_enabled=1
  54.  
  55. let g:indentLine_char='┆'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement