Advertisement
Guest User

My NVim

a guest
May 8th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.26 KB | None | 0 0
  1. set nocompatible
  2. filetype off
  3.  
  4. call plug#begin()
  5. Plug 'scrooloose/nerdtree'
  6. Plug 'bling/vim-airline'
  7. Plug 'junegunn/goyo.vim'
  8. Plug 'tpope/vim-surround'
  9. Plug 'bronson/vim-trailing-whitespace'
  10. Plug 'yggdroot/indentline'
  11. Plug 'fatih/vim-go'
  12. Plug 'zah/nim.vim'
  13. Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
  14. Plug 'lervag/vimtex'
  15. Plug 'tikhomirov/vim-glsl'
  16. call plug#end()
  17.  
  18. set number
  19. syntax on
  20. filetype on
  21. filetype plugin on
  22. filetype indent on
  23.  
  24. filetype plugin indent on
  25. " show existing tab with 4 spaces width
  26. set tabstop=4
  27. " when indenting with '>', use 4 spaces width
  28. set shiftwidth=4
  29. " On pressing tab, insert 4 spaces
  30. set expandtab
  31.  
  32. set termguicolors
  33. set ttimeout
  34.  
  35. set backspace=indent,eol,start
  36.  
  37. vmap j gj
  38. vmap k gk
  39. nmap j gj
  40. nmap k gk
  41.  
  42. autocmd StdinReadPre * let s:std_in=1
  43. autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
  44.  
  45. autocmd StdinReadPre * let s:std_in=1
  46. autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
  47.  
  48. map <C-n> :NERDTreeToggle<CR>
  49. let g:NERDTreeDirArrowExpandable = '▸'
  50. let g:NERDTreeDirArrowCollapsible = '▾'
  51.  
  52. map <C-g> :Goyo<CR>
  53.  
  54. set list lcs=tab:\|\
  55.  
  56. let g:livepreview_cursorhold_recompile = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement