Vim: Delete Until Word

08/22/20191 Min Read — In DevTools, Vim

Today I found a useful reddit thread:

r/vim Delete until word

Type d/<word> and it will delete until that word.

Also:

A truly mindblowing thing is the concept of search-offset (:h search-offset). By specifying modifiers like e, s, +, - etc at the end of the search command you can specify how much of the match is to be included. For example c/word/e changes till the end of word. Similarly d/word/s+2 deletes till r of word. The modifiers +, - can specified to indicate number of lines to offset.