$ :g!/\S/d
This command delete all the empty lines (include the lines with space) from a file.
g = global command
\S = non-whitespace character; !\S the opposite
d = delete a range
Diff your entire server config at ScriptRock.com
$ :g!/\S/d
Diff your entire server config at ScriptRock.com