From 76369ab429a62b4efd9711e28207bfb1c5fe79a8 Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 31 Mar 2014 05:47:32 -0400 Subject: [PATCH] Scrolling horizontally with the mousewheel while holding ctrl now works in input mode, and you can now copy a character with y in normal mode --- vim/config/keyboard.vim | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 95b3286..0fccbae 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -98,7 +98,8 @@ " < | (N) -> replace diff in current pane with other pane " > | (N) -> replace diff in other pane with current pane " -" (paste-buffer-override) +" (paste) +" y | (N) -> copies the character " p | (V) -> paste and replace the currently selected text " P | (V) -> paste and replace the currently selected text " \d | (V) -> delete the currently selected text @@ -125,6 +126,8 @@ "hold ctrl to scroll left/right instead of up/down noremap 3zl noremap 3zh + inoremap 3zl + inoremap 3zh "} "TABS:{ @@ -269,7 +272,10 @@ nnoremap , do "} - "PASTE BUFFER OVERRIDE:{ + "PASTE:{ + "allow y to copy in normal mode + nnoremap y vy + "alternatives that preserve the paste buffer vnoremap p "_d"0P vnoremap P "_d"0P