Posted By

jasonpottergmailcom on 01/25/12


blank line vim vi lines BlankLine BlankLines

Versions (?)

Remove Blank Lines in VI/VIM

 / Published in: Regular Expression

Here is a common Regex I use to remove all blank lines in a file using VIM

  1. :%s/^[\ \t]*\n//g

Report this snippet  

You need to login to post a comment.