Is there any way using either Vim scripting or search/replace to remove ghost newlines? I have come across times when I have to edit files that other developers using crappy software have left double newlines in like the attached picture.
I would love to find a way in Vim to remove all those stupid double spacing junk so it actually looks like it should.

Running the search-and-replace
will replace every pair of two newlines with a single one. This will inevitably screw up files that aren’t already double-spaced, though, so don’t use it blindly.