$ :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
Image may be NSFW.
Clik here to view.
Diff your entire server config at ScriptRock.com