.vimrc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. " Install vim-plug
  2. " # Vim (~/.vim/autoload)
  3. " curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  4. " https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  5. " Plugins will be downloaded under the specified directory.
  6. call plug#begin('~/.vim/plugged')
  7. " Declare the list of plugins.
  8. Plug 'scrooloose/nerdtree'
  9. Plug 'majutsushi/tagbar'
  10. Plug 'itchyny/lightline.vim'
  11. Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
  12. Plug 'junegunn/fzf.vim'
  13. Plug 'tpope/vim-eunuch'
  14. Plug 'rust-lang/rust.vim'
  15. Plug 'townk/vim-autoclose'
  16. Plug 'vim-syntastic/syntastic'
  17. Plug 'arzg/vim-rust-syntax-ext'
  18. Plug 'rafi/awesome-vim-colorschemes'
  19. Plug 'https://gitlab.com/yorickpeterse/vim-paper.git'
  20. Plug 'davidhalter/jedi-vim'
  21. Plug 'vim-scripts/AutoComplPop'
  22. " List ends here. Plugins become visible to Vim after this call.
  23. call plug#end()
  24. nmap ; :Files<CR>
  25. " autocmd vimenter * NERDTree
  26. map <C-n> :NERDTreeToggle<CR>
  27. " apt-get install exuberant-ctags
  28. nmap <F8> :TagbarToggle<CR>
  29. " GUI settings
  30. set guifont=GohuFont\ 10
  31. if has('gui_running')
  32. autocmd GUIEnter * set vb t_vb=
  33. " colorscheme parsec
  34. colorscheme seoul256
  35. endif
  36. silent !mkdir -p ~/.vimbk > /dev/null 2>&1
  37. set backupdir=$HOME/.vimbk/
  38. set directory=$HOME/.vimbk/
  39. """ Tagbar for Rust
  40. let g:tagbar_type_rust = {
  41. \ 'ctagstype' : 'rust',
  42. \ 'kinds' : [
  43. \'T:types,type definitions',
  44. \'f:functions,function definitions',
  45. \'g:enum,enumeration names',
  46. \'s:structure names',
  47. \'m:modules,module names',
  48. \'c:consts,static constants',
  49. \'t:traits',
  50. \'i:impls,trait implementations',
  51. \]
  52. \}
  53. """ Tagbar for Perl
  54. let g:tagbar_type_perl = {
  55. \ 'ctagstype' : 'perl',
  56. \ 'kinds' : [
  57. \ 'p:package:0:0',
  58. \ 'w:roles:0:0',
  59. \ 'e:extends:0:0',
  60. \ 'u:uses:0:0',
  61. \ 'r:requires:0:0',
  62. \ 'o:ours:0:0',
  63. \ 'a:properties:0:0',
  64. \ 'b:aliases:0:0',
  65. \ 'h:helpers:0:0',
  66. \ 's:subroutines:0:0',
  67. \ 'd:POD:1:0'
  68. \ ]
  69. \ }
  70. " Lightline config
  71. set laststatus=2
  72. set noshowmode
  73. if !has('gui_running')
  74. set t_Co=256
  75. endif
  76. if has('gui_running')
  77. set guifont=Gohu\ GohuFont\ Medium\ 10
  78. endif
  79. let g:lightline = {
  80. \ 'colorscheme': 'seoul256',
  81. \ }