nix/nvim: enable win navigation and misc utils

This commit is contained in:
Dmitriy Pleshevskiy 2022-06-23 14:48:54 +03:00
parent 5ed3dd5e88
commit f9400b825f
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -66,6 +66,12 @@ set smartcase " Case insensitive if no uppercase letter in pattern, case sen
" Spell check for markdown files
au BufNewFile,BufRead *.md set spell
" Enable fast navigation between windows
nnoremap <C-h> <C-W>h
nnoremap <C-l> <C-W>l
nnoremap <C-j> <C-W>j
nnoremap <C-k> <C-W>k
" Disable arrow keys and page up / down
noremap <Up> <nop>
noremap <Down> <nop>
@ -104,3 +110,9 @@ inoremap <C-ScrollWheelRight> <nop>
" Incremental substitutin
set inccommand=split
" Misc
nnoremap <leader>sv :source $MYVIMRC<CR>
cabbrev bsp belowright split
cabbrev rvsp belowright vsplit