From 53123f954c6719599b1e3cbb7fb3bbe07bd12512 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 27 Apr 2020 21:58:30 -0400 Subject: added vscode support --- keys/mappings.vim | 79 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 41 insertions(+), 38 deletions(-) (limited to 'keys') diff --git a/keys/mappings.vim b/keys/mappings.vim index 57a763f1..b1740c0d 100644 --- a/keys/mappings.vim +++ b/keys/mappings.vim @@ -1,42 +1,45 @@ -" 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() ? "\" : "\" + +if !exists('g:vscode') + " Better nav for omnicomplete + inoremap ("\") + inoremap ("\") + + " 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 window navigation + nnoremap h + nnoremap j + nnoremap k + nnoremap l + + " Use alt + hjkl to resize windows + nnoremap :resize -2 + nnoremap :resize +2 + nnoremap :vertical resize -2 + nnoremap :vertical resize +2 +endif " Better tabbing vnoremap < >gv - -" Better window navigation -nnoremap h -nnoremap j -nnoremap k -nnoremap l - -- cgit v1.2.3