nix/nvim: enable win navigation and misc utils
This commit is contained in:
parent
5ed3dd5e88
commit
f9400b825f
1 changed files with 12 additions and 0 deletions
|
@ -66,6 +66,12 @@ set smartcase " Case insensitive if no uppercase letter in pattern, case sen
|
||||||
" Spell check for markdown files
|
" Spell check for markdown files
|
||||||
au BufNewFile,BufRead *.md set spell
|
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
|
" Disable arrow keys and page up / down
|
||||||
noremap <Up> <nop>
|
noremap <Up> <nop>
|
||||||
noremap <Down> <nop>
|
noremap <Down> <nop>
|
||||||
|
@ -104,3 +110,9 @@ inoremap <C-ScrollWheelRight> <nop>
|
||||||
" Incremental substitutin
|
" Incremental substitutin
|
||||||
set inccommand=split
|
set inccommand=split
|
||||||
|
|
||||||
|
" Misc
|
||||||
|
nnoremap <leader>sv :source $MYVIMRC<CR>
|
||||||
|
|
||||||
|
cabbrev bsp belowright split
|
||||||
|
cabbrev rvsp belowright vsplit
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue