From a29fa44b3a0bd6f726ab2e8169dec35b697b04a0 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Sun, 7 Feb 2021 20:35:46 +0100 Subject: neovim config added --- .config/nvim/keys/mappings.vim | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .config/nvim/keys/mappings.vim (limited to '.config/nvim/keys') diff --git a/.config/nvim/keys/mappings.vim b/.config/nvim/keys/mappings.vim new file mode 100644 index 0000000..7ab490e --- /dev/null +++ b/.config/nvim/keys/mappings.vim @@ -0,0 +1,44 @@ +" Better nav for omnicomplete +inoremap ("\") +inoremap ("\") + +" Use alt + hjkl to resize windows +nnoremap :resize -2 +nnoremap :resize +2 +nnoremap :vertical resize -2 +nnoremap :vertical resize +2 + +" I hate escape more than anything else +inoremap jk +inoremap kj + +" Easy CAPS +inoremap viwUi +nnoremap viwU + +" TAB in general mode will move to text buffer +nnoremap :bnext +" SHIFT-TAB will go back +nnoremap :bprevious + +" Alternate way to save +nnoremap :w +" Alternate way to quit +nnoremap :wq! +" Use control-c instead of escape +nnoremap +" : completion. +inoremap pumvisible() ? "\" : "\" + +" Better tabbing +vnoremap < >gv + +" Better window navigation +nnoremap h +nnoremap j +nnoremap k +nnoremap l + +nnoremap o o^Da +nnoremap O O^Da -- cgit v1.2.3-70-g09d2