发布时间: 2014-02-02 10:18:00
:g/^$/d
:g will execute a command on lines which match a regex. The regex is 'blank line' and the command is :d (delete)
refer to: http://stackoverflow.com/questions/706076/vim-delete-blank-lines