The shortcut Y, for some reason, does not operate the way D and C do. Instead of yanking from the current position to the end of the line, Y yanks the whole line. Y does the same thing as yy.
Is it possible to override this functionality ? I want Y to acts as y$
Use a map in Normal mode:
:nnoremap Y y$
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With