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