vim: perform command on lines containing regex
g/<regex>/<command>
Searches for lines containing the regex, and performs the command.
e.g. g/TODO/d
deletes all lines containing "TODO" :D
✌🏼 Like my content? Subscribe via RSS feed.
g/<regex>/<command>
Searches for lines containing the regex, and performs the command.
e.g. g/TODO/d
deletes all lines containing "TODO" :D
✌🏼 Like my content? Subscribe via RSS feed.