Guest User

Untitled

a guest
Jul 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. call plug#begin('~/.vim/plugged')
  2.  
  3. Plug 'scrooloose/nerdtree'
  4. Plug 'itchyny/lightline.vim'
  5. Plug 'tpope/vim-surround'
  6. Plug 'raimondi/delimitmate'
  7. Plug 'tpope/vim-endwise'
  8. Plug 'wincent/command-t'
  9. Plug 'yggdroot/indentline'
  10. Plug 'tomtom/tcomment_vim'
  11. Plug 'editorconfig/editorconfig-vim'
  12. Plug 'bronson/vim-trailing-whitespace'
  13. Plug 'mxw/vim-jsx'
  14. Plug 'dracula/vim'
  15. Plug 'elixir-lang/vim-elixir'
  16.  
  17. call plug#end()
  18.  
  19. " ----------------------------------------------------------
  20. " Neovim
  21. " ----------------------------------------------------------
  22.  
  23. " Enable mouse integration.
  24. set mouse=a
  25.  
  26. " Show line number.
  27. set number
  28.  
  29. " Theme.
  30. color dracula
  31.  
  32. " Indentation
  33. set expandtab
  34. set shiftwidth=2
  35. set softtabstop=2
  36.  
  37. " ----------------------------------------------------------
  38. " NERDTree
  39. " ----------------------------------------------------------
  40.  
  41. " Open NERDTree automatically when vim starts up.
  42. autocmd StdinReadPre * let s:std_in=1
  43. autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
  44.  
  45. " Add shortcut to toggle NERDTree.
  46. map <C-n> :NERDTreeToggle<CR>
  47.  
  48. " Show hidden files
  49. let NERDTreeShowHidden=1
  50.  
  51. " Close Vim when the only window left open is the NERDTree.
  52. autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
  53.  
  54. " ----------------------------------------------------------
  55. " Indentline
  56. " ----------------------------------------------------------
  57.  
  58. " Disable by default.
  59. let g:indentLine_enabled = 0
Add Comment
Please, Sign In to add comment