From f9400b825f80dcd54c7f5a7043a09b5eab2a8ebc Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 23 Jun 2022 14:48:54 +0300 Subject: [PATCH] nix/nvim: enable win navigation and misc utils --- nix/progs/nvim/config.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nix/progs/nvim/config.vim b/nix/progs/nvim/config.vim index 6aa1fd0..3122c04 100644 --- a/nix/progs/nvim/config.vim +++ b/nix/progs/nvim/config.vim @@ -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 h +nnoremap l +nnoremap j +nnoremap k + " Disable arrow keys and page up / down noremap noremap @@ -104,3 +110,9 @@ inoremap " Incremental substitutin set inccommand=split +" Misc +nnoremap sv :source $MYVIMRC + +cabbrev bsp belowright split +cabbrev rvsp belowright vsplit +