Revert "Remove the keybinding to have Y copy to the end of the line as this is default in neovim"

This reverts commit 0796112444.
This commit is contained in:
Kevin MacMartin 2024-03-17 17:46:04 -04:00
parent 0796112444
commit 033184f58a
2 changed files with 5 additions and 0 deletions

@ -0,0 +1 @@
Subproject commit ae316e25ddb1b33feb644afc2c29c4f48653b55d

View file

@ -93,6 +93,7 @@
" <Leader>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)
" <Leader>x | (N) -> delete the char(s) under and the cursor
@ -442,6 +443,9 @@
vnoremap P p
xmap p <Plug>ReplaceWithRegisterVisual
"copy to the end of the line
nnoremap Y vg_y
"delete/cut operations that don't replace the paste buffer
nnoremap <Leader>x "_x
vnoremap <Leader>x "_x