[ubuntu]vim中文乱码解决方法

打开vim的配置文件,位置在/etc/vim/vimrc
在其中加入

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


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

猜你喜欢

转载自iaiai.iteye.com/blog/1339705