diff --git a/common/.vim/key_maps.vim b/common/.vim/key_maps.vim index 04e8561..3bb684d 100644 --- a/common/.vim/key_maps.vim +++ b/common/.vim/key_maps.vim @@ -18,6 +18,9 @@ inoremap :echoe "Use l" inoremap :echoe "Use k" inoremap :echoe "Use j" +" Ctrl+Backspace to add an undo-point and delete last word +imap u + " Unbind some useless/annoying default key bindings. nmap Q @@ -32,6 +35,7 @@ nnoremap zz nnoremap ]s ]szz nnoremap n nzzzv nnoremap N Nzzzv +nnoremap G Gzz " Move visually selected lines around with J & K vnoremap J :m '>+1gv=gv diff --git a/common/.vim/vimrc b/common/.vim/vimrc index ddd3854..128c69f 100644 --- a/common/.vim/vimrc +++ b/common/.vim/vimrc @@ -31,12 +31,3 @@ autocmd! bufwritepost $VIMRC source % " Save inside vim config directory set undodir=$VIMDIR/undo// - -" Ctrl+Backspace to add an undo-point and delete last word -" It's here cause ideavim messes it up -imap u - -" Map nerdtree to e -" Changes the pwd and opens the VCS root -" Placed here because ideavim doesn't understand :tcd -nnoremap e :tcd %:h :NERDTreeToggleVCS