I recently wanted to delete all lines which matched a regex somewhere in the line. Here's the easy way to do it in vim: :g/pattern/d
:g/pattern/d
Thanks a ton it was a fantastic help, now to delete lines matching regex is without a doubt simple utilizing your guidance. Thank you
you're welcome!
Post a Comment
2 comments:
Thanks a ton it was a fantastic help, now to delete lines matching regex is without a doubt simple utilizing your guidance. Thank you
you're welcome!
Post a Comment