From 90919f917b50c6c5bed5aa5ff2d573084ffcf0cc Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 30 Sep 2020 00:14:00 +0200 Subject: added .bashrc, better .vimrc, numlockx, switched to neovim with bunch of plugins --- .config/nvim/keys/mappings.vim | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .config/nvim/keys/mappings.vim (limited to '.config/nvim/keys/mappings.vim') diff --git a/.config/nvim/keys/mappings.vim b/.config/nvim/keys/mappings.vim new file mode 100644 index 0000000..1b5ae4f --- /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