Category Archives: Regular Expressions

How to Remove All Blank Lines in VIM

Regular expression to remove empty lines: :%g/^$/d

Posted in Regular Expressions, VIM | Leave a comment