I often use dt
, but that only deletes to a character. Is there something like dt
that lets me type in a search instead of a single char? I would want to delete from my current cursor to that first search term.
1 Answer
this can be done with d/term<cr>
-
-
2Additionally, if you've already performed the search and want to delete until the next occurrence, you can do
d//<cr>
(ord//e<cr>
to include the search pattern).– PakDec 8, 2017 at 17:52