/ Published in: Regular Expression
Here is a common Regex I use to remove all blank lines in a file using VIM
Expand |
Embed | Plain Text
:%s/^[\ \t]*\n//g
You need to login to post a comment.
jasonpottergmailcom on 01/25/12
blank line vim vi lines BlankLine BlankLines
Here is a common Regex I use to remove all blank lines in a file using VIM
:%s/^[\ \t]*\n//g
You need to login to post a comment.