I often want to delete a line matching a pattern in Vim, as well as, say, the next one. Here’s how to do it: :g/pattern/.,+1d. #vim
:g/pattern/.,+1d
#vim