From 81f3cf18db8d8fbc7a0c63ac7fe3915d7202eee2 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 24 Apr 2020 15:29:55 -0400 Subject: auto push --- keys/mappings.vim | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 keys/mappings.vim (limited to 'keys') diff --git a/keys/mappings.vim b/keys/mappings.vim new file mode 100644 index 00000000..577df5cf --- /dev/null +++ b/keys/mappings.vim @@ -0,0 +1,41 @@ +" 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 -- cgit v1.2.3