remove blank lines in VIM
访问量: 3005
: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
访问量: 3005
: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