VI 删除行尾空格

来源:互联网 发布:ubuntu压缩命令 编辑:程序博客网 时间:2024/04/30 10:09

命令:%s/\s\+$//g

可以删除行尾多余的空格和tab符号。


命令:%s/ *$//g

/和*中间有空格,只能删除行尾空格,对于tab不能删除

0 0