.vimrc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 'vim-scripts/AutoComplPop'
  21. " List ends here. Plugins become visible to Vim after this call.
  22. call plug#end()
  23. nmap ; :Files<CR>
  24. " autocmd vimenter * NERDTree
  25. map <C-n> :NERDTreeToggle<CR>
  26. " apt-get install exuberant-ctags
  27. nmap <F8> :TagbarToggle<CR>
  28. " GUI settings
  29. set guifont=GohuFont\ 10
  30. if has('gui_running')
  31. autocmd GUIEnter * set vb t_vb=
  32. " colorscheme parsec
  33. colorscheme seoul256
  34. endif
  35. silent !mkdir -p ~/.vimbk > /dev/null 2>&1
  36. set backupdir=$HOME/.vimbk/
  37. set directory=$HOME/.vimbk/
  38. """ Tagbar for Rust
  39. let g:tagbar_type_rust = {
  40. \ 'ctagstype' : 'rust',
  41. \ 'kinds' : [
  42. \'T:types,type definitions',
  43. \'f:functions,function definitions',
  44. \'g:enum,enumeration names',
  45. \'s:structure names',
  46. \'m:modules,module names',
  47. \'c:consts,static constants',
  48. \'t:traits',
  49. \'i:impls,trait implementations',
  50. \]
  51. \}
  52. """ Tagbar for Perl
  53. let g:tagbar_type_perl = {
  54. \ 'ctagstype' : 'perl',
  55. \ 'kinds' : [
  56. \ 'p:package:0:0',
  57. \ 'w:roles:0:0',
  58. \ 'e:extends:0:0',
  59. \ 'u:uses:0:0',
  60. \ 'r:requires:0:0',
  61. \ 'o:ours:0:0',
  62. \ 'a:properties:0:0',
  63. \ 'b:aliases:0:0',
  64. \ 'h:helpers:0:0',
  65. \ 's:subroutines:0:0',
  66. \ 'd:POD:1:0'
  67. \ ]
  68. \ }
  69. " Lightline config
  70. set laststatus=2
  71. set number
  72. if !has('gui_running')
  73. set t_Co=256
  74. endif
  75. if has('gui_running')
  76. set guifont=Envy\ Code\ R\ Regular\ 10
  77. endif
  78. let g:lightline = {
  79. \ 'colorscheme': 'seoul256',
  80. \ }