Is there a one-letter abbreviation for yank-until end of line? For example, there is:
D
delete til end of lineC
change til end of liney$
was the closest thing I can find for this (Y
yanks full line)
Is there a short-form of the above?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityIt looks like the "Y" is not Vi-Compatible, but you can make a work around with :map Y y$
(Works on Neovim, not sure about vim proper)
:help Y
; though, :nnoremap Y y$
is better.
:help Y
.y$
yanks from the current cursor position until the end of the line including the new line/line feed character. If you don't want that, you will be usingyt$
and trying to remap that.