From 033184f58a31f4f17419974df1cedde9968fffec Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 17 Mar 2024 17:46:04 -0400 Subject: [PATCH] Revert "Remove the keybinding to have Y copy to the end of the line as this is default in neovim" This reverts commit 07961124445e769cae50d20a6f4b64128f11da40. --- vim/bundle/ReplaceWithRegister | 1 + vim/config/keyboard.vim | 4 ++++ 2 files changed, 5 insertions(+) create mode 160000 vim/bundle/ReplaceWithRegister 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