打开文件 vi ~/.vimrc 修改 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936set termencoding=utf-8set encoding=utf-8 出现大量换行符的解决方案是 sudo apt-get remove vim-commonsudo apt-get install vim