:set ff 查看文件类型

用 vim 转换,用vim打开文本文件,用 set fileformat=unix 转换
                      vim test.txt
                      :set fileformat=unix
                       :wq
fileformat=dos 或 fileformat=unix