Delete all comments (useful for verbose default configuration files, like nginx.conf):
nginx.conf
:g/^\s*#/d
Delete all empty lines:
:g/^\s*\n/d