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.

6

this can be done with d/term<cr>

  • Ah, that's sensible. I kept trying to do dt/term<cr> – Daniel Kaplan Dec 8 '17 at 0:51
  • 1
    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 '17 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.