VIM:How to delete blank lines in vim?
Delete all blank line :g/^\s*$/d
Deleteonly successive multi blank lines (reduce them to a single blank line) and leaving single blank lines intact:g/^\_$\n\_^$/d
Here's the easiest one :v/\S/d
Deletes all the lines that don't have a number or letter, it deleted all the blank lines :%s/^[^a-zA-Z0-9]$\n//ig
浙公网安备 33010602011771号