vim: Delete all lines matching a search pattern

A great little command that definitely saves you time!

:g/.*foo.*/d

the "d" at the end is replaceable so you can use other commands if needed.

Source

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog