What command can I run to remove blank lines in Vim?
:g/^$/d
:g will execute a command on lines which match a regex. The regex is 'blank line' and the command is :d (delete)
:g
:d
2.1m questions
2.1m answers
60 comments
57.0k users