You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1003 B

  1. call plug#begin(expand('~/.vim/plugged'))
  2. Plug 'scrooloose/nerdtree'
  3. map <C-n> :NERDTreeToggle<CR>
  4. "" Color
  5. Plug 'tomasr/molokai'
  6. Plug 'morhetz/gruvbox'
  7. Plug 'srcery-colors/srcery-vim'
  8. call plug#end()
  9. " visual
  10. syntax on
  11. set ruler
  12. set number
  13. set title
  14. set titlestring=vim-%F
  15. set t_Co=256
  16. set cursorline
  17. set background=dark " for the dark version
  18. " abbreviations
  19. cnoreabbrev W! w!
  20. cnoreabbrev Q! q!
  21. cnoreabbrev Qall! qall!
  22. cnoreabbrev Wq wq
  23. cnoreabbrev Wa wa
  24. cnoreabbrev wQ wq
  25. cnoreabbrev WQ wq
  26. cnoreabbrev W w
  27. cnoreabbrev Q q
  28. cnoreabbrev Qall qall
  29. "" Switching windows
  30. noremap <C-j> <C-w>j
  31. noremap <C-k> <C-w>k
  32. noremap <C-l> <C-w>l
  33. noremap <C-h> <C-w>h
  34. "" esc mapping
  35. inoremap jk <ESC>
  36. tnoremap jk <C-\><C-n>
  37. " scroll
  38. set scrolloff=5 " keep at least 5 lines above/below
  39. set sidescrolloff=5 " keep at least 5 lines left/right
  40. colorscheme gruvbox
  41. let &t_SI.="\e[6 q" "SI = INSERT mode
  42. let &t_SR.="\e[4 q" "SR = REPLACE mode
  43. let &t_EI.="\e[2 q" "EI = NORMAL mode (ELSE)