I’d forgotten this in vim:

%g/^$/d

to delete blank lines