由于各操作系统对换行符的处理不同,
Unix: \n
Windows : \r\n
Mac : \r
所以有时 Vim 打开的文件会有如下情况:
解决方法为:在 Vim 中执行命令 :%s/\r//gc
完。