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