From 9306287af9d3643d0481badecf5f729b2e1d211f Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 26 Jun 2014 07:35:39 -0400 Subject: [PATCH] swapped ctrl and shift for selection and movement with the arrow keys, and changed it so ctrl+left/right goes by word instead of a few characters --- vim/config/keyboard.vim | 60 ++++++++++++++++++++++------------------- 1 file changed, 32 insertions(+), 28 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index a83fa13..1720638 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -132,13 +132,15 @@ " " (movement) " = | (N) -> move to the first character on the next line -" | (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 +" | (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 " -" | (N) -> move a few lines up -" | (N) -> move a few lines down +" | (N) -> move four lines up +" | (N) -> move four lines down +" | (N) -> move one word right +" | (N) -> move one word left " " | (V) -> move a block up one line " | (V) -> move a block down one line @@ -163,15 +165,15 @@ " | (V) -> select all text " a | (V) -> select all text " -" | (V) -> select all text above -" | (V) -> select all text below -" | (V) -> select all text to the right -" | (V) -> select all text to the left up to the indent +" | (V) -> select all text above +" | (V) -> select all text below +" | (V) -> select all text to the right +" | (V) -> select all text to the left up to the indent " -" | (V) -> select a few lines up -" | (V) -> select a few lines down -" | (V) -> select a few lines right -" | (V) -> select a few lines left +" | (V) -> select four lines up +" | (V) -> select four lines down +" | (V) -> select one word right +" | (V) -> select one word left " " (copy/paste and undo/redo) " p | (N) -> view the paste buffers and register contents @@ -516,14 +518,16 @@ nnoremap = + "remap keys for speedier movement - nnoremap 4k - nnoremap 4j + nnoremap 4k + nnoremap 4j + nnoremap + nnoremap "remap keys to scroll to the end in a direction - nnoremap gg0 - nnoremap G$ - nnoremap $ - nnoremap ^ + nnoremap gg0 + nnoremap G$ + nnoremap $ + nnoremap ^ "remap alt+up/down to move blocks up/down a line vmap MoveBlockUp @@ -558,16 +562,16 @@ xnoremap a gg0vG$ "map remap keys for speedier text selection - xnoremap 4k - xnoremap 4j - xnoremap 6l - xnoremap 6h + xnoremap 4k + xnoremap 4j + xnoremap + xnoremap "remap keys to select all text in one direction - xnoremap gg0 - xnoremap G$ - xnoremap $ - xnoremap ^ + xnoremap gg0 + xnoremap G$ + xnoremap $ + xnoremap ^ "} "COPY PASTE AND UNDO REDO:{