I find this shortcut useful to delete all blank lines in a file
:g/^$/d
Edit: Oh, also, since vim ships with xxd: xxd -r -p is a very useful thing to know.
I find this shortcut useful to delete all blank lines in a file
:g/^$/d