880   Linux Ubuntu

打开vim的配置文件,位置在/etc/vim/vimrc

在其中加入

set fileencodings=utf-8,gb2312,gbk,gb18030
set termencoding=utf-8
set encoding=prc

保存退出,此时vim就能正确显示中文了。




Leave a Reply

Your email address will not be published. Required fields are marked *