.vimrc 2.1 KB

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