Hacker News new | ask | show | jobs
by sapphirecat 5292 days ago
There's another mistake in that command (also present in the article): with that "t" in there, `yt$` will yank up to, but not including, a '$' character on the current line. Unless there is no '$', which is an error and no yanking. Yank from cursor, not including newline, is `y$` without a "t".
1 comments

and capital Y is equivalent to y$. A capital letter for a verb is "do this verb from current location until end of line"
Y is an exception to that rule, it's a synonym for yy (like S for cc), but easily changed to match D and C.
Ah wow, you are correct. Any good reason that is the default behavior for Y?