VisionOS's Weblog

November 2, 2009

VIM :g

Filed under: uncategorized — visionos @ 3:53 am

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 »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.