通过
:set ff
查看当前格式
再通过 :set ff=unix 更改
然后保存退出(:wq)
sh脚本异常:/bin/sh^M:bad interpreter: No such file or directory
原文:http://www.cnblogs.com/ciscoo/p/6282369.html