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