vim 文件名
用命令:set ff? 可以看到dos或unix的字样. 用:set ff=unix把它强制为unix格式
mac下dos文件转unix
原文:http://www.cnblogs.com/insIs0n/p/3546678.html