Delete lines containing pattern
For example, I need to delete all lines containing "WORD"
To view all lines to be removed:
:g/WORD
To remove lines:
:g/WORD/d
Or negative:
:g!/profile/d
For example, I need to delete all lines containing "WORD"
To view all lines to be removed:
:g/WORD
To remove lines:
:g/WORD/d
Or negative:
:g!/profile/d
Comments
comments powered by Disqus