Date Tags Vim

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

Comments

comments powered by Disqus