diff --git a/vim/bundle/ReplaceWithRegister b/vim/bundle/ReplaceWithRegister new file mode 160000 index 0000000..ae316e2 --- /dev/null +++ b/vim/bundle/ReplaceWithRegister @@ -0,0 +1 @@ +Subproject commit ae316e25ddb1b33feb644afc2c29c4f48653b55d diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index bfd29b8..2b91694 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -93,6 +93,7 @@ " p | (N) -> view the paste buffers and register contents " P | (V) -> save selection to the buffer and paste over " p | (V) -> preserve the buffer pasting over selected text +" Y | (N) -> copy to the end of the line " " (delete/cut operations that don't replace the paste buffer) " x | (N) -> delete the char(s) under and the cursor @@ -442,6 +443,9 @@ vnoremap P p xmap p ReplaceWithRegisterVisual + "copy to the end of the line + nnoremap Y vg_y + "delete/cut operations that don't replace the paste buffer nnoremap x "_x vnoremap x "_x