去掉空行

:g/^\s*$/d
 
:g 代表在全文档范围内
^代表行的开始
\s*代表空白字符
$代表行的结束
d代表删除
 
posted @ 2016-10-02 09:49  suonikeyinsu  Views(93)  Comments(0Edit  收藏  举报