vim中删除每行行尾的空格

需要这么干是因为srt字幕文件如果行尾有空格,MP4就显示不了字幕了。

打开vim:

 

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

:wq 

posted @ 2011-03-01 10:29  super119  阅读(9243)  评论(0编辑  收藏  举报