From 8e280179530233dadf69ba45e9c6e332abad5234 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 24 Mar 2016 16:24:21 -0400 Subject: [PATCH] Revert Ctrl+Arrow keys functionality and use Alt+Arrow keys to scroll the page, then use Shift+Ctrl+Arrow keys to move a line or block --- vim/config/keyboard.vim | 92 ++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 3debd59..fc845c0 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -223,20 +223,25 @@ " = | (N) -> go to the first char on the next line " _ | (N) -> go to the first char on the previous line " -" | (A) -> scroll up -" | (A) -> scroll down -" | (A) -> scroll right -" | (A) -> scroll left +" | (N) -> move four lines up +" | (N) -> move four lines down +" | (N) -> move one word right +" | (N) -> move one word left +" +" | (A) -> scroll up +" | (A) -> scroll down +" | (A) -> scroll right +" | (A) -> scroll left " " | (N) -> move to the beginning of the document " | (N) -> move to the end of the document " | (N) -> move to the end of the line " | (N) -> move to the beginning of the non-whitespace " -" | (V) -> move a block up one line -" | (V) -> move a block down one line -" | (N) -> move a line up one line -" | (N) -> move a line down one line +" | (V) -> move a block up one line +" | (V) -> move a block down one line +" | (N) -> move a line up one line +" | (N) -> move a line down one line " " | (V) -> move a block up a half page " | (V) -> move a block down a half page @@ -763,30 +768,35 @@ nnoremap _ - "map ctrl+direction to shifting the screen in that direction - noremap - nnoremap - xnoremap - snoremap - vnoremap - inoremap - noremap - nnoremap - xnoremap - snoremap - vnoremap - inoremap - noremap 4zl - nnoremap 4zl - xnoremap 4zl - snoremap 4zl - vnoremap 4zl - inoremap 4zl - noremap 4zh - nnoremap 4zh - xnoremap 4zh - snoremap 4zh - vnoremap 4zh - inoremap 4zh + nnoremap 4k + nnoremap 4j + nnoremap + nnoremap + + noremap + nnoremap + xnoremap + snoremap + vnoremap + inoremap + noremap + nnoremap + xnoremap + snoremap + vnoremap + inoremap + noremap 4zl + nnoremap 4zl + xnoremap 4zl + snoremap 4zl + vnoremap 4zl + inoremap 4zl + noremap 4zh + nnoremap 4zh + xnoremap 4zh + snoremap 4zh + vnoremap 4zh + inoremap 4zh "remap keys to scroll to the end in a direction nnoremap gg0 @@ -795,20 +805,10 @@ nnoremap ^ "remap alt+up/down to move blocks up/down a line - vmap MoveBlockUp - vmap MoveBlockDown - nmap MoveLineUp - nmap MoveLineDown - - "remap alt+left/right/h/l to move blocks up/down a half page - vmap MoveBlockHalfPageUp - vmap MoveBlockHalfPageDown - nmap MoveLineHalfPageUp - nmap MoveLineHalfPageDown - vmap MoveBlockHalfPageUp - vmap MoveBlockHalfPageDown - nmap MoveLineHalfPageUp - nmap MoveLineHalfPageDown + vmap MoveBlockUp + vmap MoveBlockDown + nmap MoveLineUp + nmap MoveLineDown "map signify to ]c and [c let g:signify_mapping_next_hunk = ']c'