Sometimes you want to delete all matching lines in a vim buffer to do that all we have to do is:
:g/match-term/d
We can also delete all lines that don't match by using g!
Sometimes you want to delete all matching lines in a vim buffer to do that all we have to do is:
:g/match-term/d
We can also delete all lines that don't match by using g!