vim刪除空白行

刪除沒有內容的空行
g/^$/d

刪除包含有空格組成的空行
g/^\s*$/d

除以空格或tab開頭到結尾的空行
g/^[ |\t]*$/d

posted @ 2013-07-07 17:23  smallest  阅读(176)  评论(0)    收藏  举报