Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And you can also type d2ft to delete everything up to and including the second t, for example.

(I personally think of "f" as "find", not "first")



I think of the t motion as "to", and the f motion as "frough" (rhymes with through: "delete frough the second t").


I never even thought to numerically increment the action!

What beautiful chords at this here fireside chat.


There’s also the `;`, which repeats the last movement! So if you did `dft` and didn’t see the extra “t” in the way in the first place, you can then just do `d;`. It’s like `.` but for movement!

I think that’s right anyway, no vim terminal at hand to check myself.


Wouldn't just `.` do the same as `d;` in that case?


Not always, the ";" sets the repetition-count of the operation to 1.

You can type "d2;" however.


Good to know, thank you


Oh great, I’ll finally have to remove my remap of ‘; = :’ never did I investigate to know what I was opting out of.


Not worth it. That remap has saved me more keystrokes than I can reasonably count. But adding the opposite remap for good measure isn't the worst idea.


Beautiful - the ways I’ve never considered composing…




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: