Sunday, October 17, 2010

How to delete a line which contain matching text line using vim?

I have already added a blog post with a tip for deleting all the matching lines for a matching patern. But this is some thing similar still it is easy after you seached for a text. ie., first search the pattern by "/" and the execute the command -
:g//d
This will delete all the lines with matching patterns. Tested in linux and also in windows.

No comments:

Post a Comment