Skip to content

Comment on Learn to speak vim - verbs, nouns, and modifiersparent

Comments

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".

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?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.