Vim - Delete Until Searched Word

Vim never ceases to amaze me. There are so many ways to do things and even though I've been using it for around 25 years, there are still new things I find in vim almost daily.

Something that I just used today was that I needed to delete the text in a line up until a particular word. Sure, I could delete a certain number of words or repeat a delete command, but I didn't know that this solution existed until today.


delete up until "mystring". I'm sure all of you knew about this before, but this was a new one for me.

I love working in Vim daily and I'm always finding new ways to make myself more productive.

Share this post