set binary set noendofline 上面方法测试发现ok的 终于找到方法了。特意来分享一下: autocmd FileType php set bin noeol 这个方法,我没有试过