vim 去掉文中的^M

:%s/ctrl+v ctrl+m//g

在vim里面用 ctrl+v和ctrl+m组合起来就是^M。
 
也可以使用shell中的 dos2unix命令。

你可能感兴趣的:(vim 去掉文中的^M)