From a2be154e41141832363708e4cd0cf824625c7cba Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 28 Mar 2014 11:52:42 -0400 Subject: [PATCH] Added shift-direction to select large spans of text to visual mode --- vim/config/keyboard.vim | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 26d59f6..c5a3e3c 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -49,13 +49,21 @@ " | (N) -> select all " a | (V) -> select all " a | (N) -> select all +" | (V) -> toggle selection of all text above the cursor " | (N) -> select all text above the cursor +" | (V) -> toggle selection of all text above the cursor " | (N) -> select all text above the cursor +" | (V) -> toggle selection of all text below the cursor " | (N) -> select all text below the cursor +" | (V) -> toggle selection of all text below the cursor " | (N) -> select all text below the cursor +" | (V) -> toggle selection of all text to the right of the cursor " | (N) -> select all text to the right of the cursor +" | (V) -> toggle selection of all text to the right of the cursor " | (N) -> select all text to the right of the cursor -" | (N) -> select to the beginning of the non-whitespace +" | (V) -> toggle selection of all non-whitespace to the left +" | (N) -> select all non-whitespace to the left +" | (V) -> toggle selection of all non-whitespace to the left " | (N) -> select to the beginning of the line " " (neocomplcache) @@ -154,17 +162,25 @@ nnoremap ^ "map remap keys to select text - nnoremap gg0vG$ vnoremap gg0vG$ - nnoremap a gg0vG$ + nnoremap gg0vG$ vnoremap a gg0vG$ + nnoremap a gg0vG$ + vnoremap gg0 nnoremap vgg0 + vnoremap gg0 nnoremap vgg0 + vnoremap G$ nnoremap vG$ + vnoremap G$ nnoremap vG$ + vnoremap $ nnoremap v$ + vnoremap $ nnoremap v$ + vnoremap ^ nnoremap v^ + vnoremap ^ nnoremap v^ "}}}