Home > Regular Expressions, VIM > How to Remove All Blank Lines in VIM

How to Remove All Blank Lines in VIM

October 23rd, 2008 Masao Leave a comment Go to comments

Regular expression to remove empty lines:

:%g/^$/d

Categories: Regular Expressions, VIM Tags:
  1. No comments yet.
  1. No trackbacks yet.