0

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 1

7

this can be done with d/term<cr>

2
  • Ah, that's sensible. I kept trying to do dt/term<cr> Dec 8, 2017 at 0:51
  • 2
    Additionally, if you've already performed the search and want to delete until the next occurrence, you can do d//<cr> (or d//e<cr> to include the search pattern).
    – Pak
    Dec 8, 2017 at 17:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.