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.

44 lines
818 B

  1. " visual
  2. syntax on
  3. set ruler
  4. set number
  5. set title
  6. set titlestring=nvim-%F
  7. set t_Co=256
  8. set cursorline
  9. " abbreviations
  10. cnoreabbrev W! w!
  11. cnoreabbrev Q! q!
  12. cnoreabbrev Qall! qall!
  13. cnoreabbrev Wq wq
  14. cnoreabbrev Wa wa
  15. cnoreabbrev wQ wq
  16. cnoreabbrev WQ wq
  17. cnoreabbrev W w
  18. cnoreabbrev Q q
  19. cnoreabbrev Qall qall
  20. cnoreabbrev Qa qa
  21. "" Switching windows
  22. noremap <C-j> <C-w>j
  23. noremap <C-k> <C-w>k
  24. noremap <C-l> <C-w>l
  25. noremap <C-h> <C-w>h
  26. "" esc mapping
  27. inoremap jk <ESC>
  28. tnoremap jk <C-\><C-n>
  29. " scroll
  30. set scrolloff=5 " keep at least 5 lines above/below
  31. set sidescrolloff=5 " keep at least 5 lines left/right
  32. " line length
  33. " set textwidth=80
  34. " toggle for paste mode
  35. set pastetoggle=<F3>
  36. " set ignorecase " do case insensitive search
  37. set incsearch " show incremental search results as you type