直接寫入/etc/vim/vimrc檔案,在/etc/vim/vimrc檔案末尾加上
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1
set enc=utf8
set fencs=utf8,gbk,gb2312,gb18030
複製程式碼
直接寫入/etc/vim/vimrc檔案,在/etc/vim/vimrc檔案末尾加上
set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1
set enc=utf8
set fencs=utf8,gbk,gb2312,gb18030
複製程式碼