Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I understand that the right way to delete until the end of line is d$, but why does dt$ not work also?
Because t takes a character, so it looking for a literal $ character, not a motion like end of line
t (and its variants T, f and F) take a single character afterwards to denote the target of motion within the line.
So the effects of the two commands are:
Required, but never shown