init.vim 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. """""""""" HOUSEKEEPING """"""""""
  2. syntax on
  3. set nowrap
  4. set encoding=utf8
  5. " escape can blow me
  6. nnoremap <C-c> <Esc>
  7. " Gets rid of highlights after search
  8. nnoremap <silent> <C-L> :nohlsearch<CR><C-L>
  9. " Line numbers
  10. set number
  11. " Toggle line numbers
  12. nnoremap <F6> :set nonumber!<CR>
  13. if &compatible
  14. set nocompatible " Be iMproved
  15. endif
  16. " Remap window switch
  17. nnoremap <C-h> <C-w>h
  18. nnoremap <C-j> <C-w>j
  19. nnoremap <C-k> <C-w>k
  20. nnoremap <C-l> <C-w>l
  21. """""""""" END HOUSEKEEPING """"""""""
  22. """""""""" PLUGINS """"""""""
  23. " Required:
  24. set runtimepath+=~/.cache/dein/repos/github.com/Shougo/dein.vim
  25. " Required:
  26. if dein#load_state('~/chris/.cache/dein')
  27. call dein#begin('~/.cache/dein')
  28. " Let dein manage dein
  29. " Required:
  30. call dein#add('~/.cache/dein/repos/github.com/Shougo/dein.vim')
  31. " Start Screen
  32. call dein#add('mhinz/vim-startify')
  33. " Search Index shows how many instances of searched term
  34. call dein#add('google/vim-searchindex')
  35. " line indents
  36. "call dein#add('Yggdroot/indentLine')
  37. " Gutentags
  38. call dein#add('ludovicchabant/vim-gutentags')
  39. " Tagbar
  40. call dein#add('majutsushi/tagbar')
  41. " Add or remove your plugins here:
  42. call dein#add('Shougo/neosnippet.vim')
  43. call dein#add('Shougo/neosnippet-snippets')
  44. " Themes
  45. call dein#add('liuchengxu/space-vim-dark')
  46. " Auto Pairs
  47. call dein#add('jiangmiao/auto-pairs')
  48. " NERDTree
  49. call dein#add('scrooloose/nerdtree')
  50. " For autocomplete
  51. call dein#add('Shougo/deoplete.nvim')
  52. " For vim 8+
  53. if !has('nvim')
  54. call dein#add('roxma/nvim-yarp')
  55. call dein#add('roxma/vim-hug-neovim-rpc')
  56. endif
  57. " You can specify revision/branch/tag.
  58. call dein#add('Shougo/deol.nvim', { 'rev': '01203d4c9' })
  59. " Required:
  60. call dein#end()
  61. call dein#save_state()
  62. endif
  63. " Required:
  64. filetype plugin indent on
  65. syntax enable
  66. " If you want to install not installed plugins on startup.
  67. if dein#check_install()
  68. call dein#install()
  69. endif
  70. """""""""" END PLUGINS """"""""""
  71. """""""""" SPACEVIM THEME """"""""""
  72. " Set theme
  73. colorscheme space-vim-dark
  74. " Terminal Transparency
  75. "if $TERM_PROGRAM =~ 'terminator'
  76. " hi Normal ctermbg=NONE guibg=NONE
  77. " hi LineNr ctermbg=NONE guibg=NONE
  78. " hi SignColumn ctermbg=NONE guibg=NONE
  79. "endif
  80. " Range: 233 (darkest) ~ 238 (lightest)
  81. " Default: 235
  82. let g:space_vim_dark_background = 233
  83. color space-vim-dark
  84. hi Comment guifg=#5C6370 ctermfg=59
  85. "hi Comment cterm=italic
  86. "set background=dark
  87. "set termguicolors
  88. """""""""" END THEME """"""""""
  89. " Deoplete
  90. let g:deoplete#enable_at_startup = 1
  91. " Startify
  92. let g:startify_custom_header = [
  93. \ ' ',
  94. \ ' __ ',
  95. \ ' __ __ /\_\ ___ ___ ',
  96. \ ' /\ \/\ \\/\ \ /'' __` __`\ ',
  97. \ ' \ \ \_/ |\ \ \/\ \/\ \/\ \ ',
  98. \ ' \ \___/ \ \_\ \_\ \_\ \_\ ',
  99. \ ' \/__/ \/_/\/_/\/_/\/_/ ',
  100. \ ]
  101. " Tagbar
  102. nmap <F8> :TagbarToggle<CR>
  103. " NERDTree
  104. nmap <F5> :NERDTreeToggle<CR>