I very often use dt-some_character motion in Vim, to delete every character upto some_character. However, it works only for a single line.
Is there any analogue that would work for multiple lines?
You could use d/some-character<CR> (e.g d/e then Enter to delete up to the next 'e').
Note however that this will modify the last-search register ("/).
Edit :
The counterpart to F is ? (search backwards) (d?X is inclusive, so no dT).
There are several plugins that extend the built-in f / t motions to cover multiple lines:
Another one that goes into the same direction, but via a different approach:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With