Do something on lines that mach a search pattern (this is what I always forget because I don’t use it that often):
:g/search pattern/command
Delete empty lines using the above:
:g/^$/d
Delete lines starting with #
:g/^#/d
Do something on lines that mach a search pattern (this is what I always forget because I don’t use it that often):
:g/search pattern/command
Delete empty lines using the above:
:g/^$/d
Delete lines starting with #
:g/^#/d
No comments yet.
RSS feed for comments on this post. TrackBack URI