Tuesday, September 4, 2012

How could you delete all empty lines from a file within VI?

:g/^$/d
or
:g!/\S/d

No comments :