From 9b9ab248573849480988bde4372ff068ade064fb Mon Sep 17 00:00:00 2001 From: Blubber Date: Tue, 20 Sep 2016 07:47:04 +0200 Subject: refactoring --- .vim/vimrc_files/keymaps.vim | 44 ++++++-------------------------------------- 1 file changed, 6 insertions(+), 38 deletions(-) (limited to '.vim/vimrc_files/keymaps.vim') diff --git a/.vim/vimrc_files/keymaps.vim b/.vim/vimrc_files/keymaps.vim index b38f5e9..f61663f 100644 --- a/.vim/vimrc_files/keymaps.vim +++ b/.vim/vimrc_files/keymaps.vim @@ -19,58 +19,22 @@ noremap q :q " re-adjust indentation map f mzgg=G`z -"let ArrowDisableMessage = "Arrow Keys disabled! Better learn hjkl ;)" - -" Disable arrow keys -- train jklh -" nnoremap :echo ArrowDisableMessage -" nnoremap :echo ArrowDisableMessage -" nnoremap :echo ArrowDisableMessage -" nnoremap :echo ArrowDisableMessage -" -" vnoremap :echo ArrowDisableMessage -" vnoremap :echo ArrowDisableMessage -" vnoremap :echo ArrowDisableMessage -" vnoremap :echo ArrowDisableMessage -" -" inoremap :echo ArrowDisableMessage -" inoremap :echo ArrowDisableMessage -" inoremap :echo ArrowDisableMessage -" inoremap :echo ArrowDisableMessage - - -" ctrl-hjkl move in insert mode -inoremap -inoremap -inoremap -inoremap - - -" ctrl-jk movement in command window -cnoremap -cnoremap -cnoremap -cnoremap - - " navigate between different splits map j map k map l map h - " resize splits map 5- map 5+ map 5< map 5> - " navigate between different buffers nnoremap :bprevious nnoremap :bnext - " ctrl-ae jump to line start/end nnoremap 0 nnoremap $ @@ -81,7 +45,6 @@ vnoremap $ cnoremap cnoremap - " Shortcut to toggle relative numbering mode nnoremap :call ToggleRelativeNumber() @@ -92,7 +55,12 @@ imap vnoremap VV''>o//}}}'<A " substitute selection -vnoremap "hy:%s/h//gc +vnoremap "hy:%s/h/h/gc + +" yank/paste into/from register +vnoremap "ay +inoremap a +cnoremap a " +-----------------+ " | Plugin specific | -- cgit v1.2.3