解决vi vim中文乱码问题

yum install vim-minimal fonts-chinese -y
echo "set fencs=utf-8,GB18030,ucs-bom,default,latin1" >>/etc/vimrc
echo "set fencs=utf-8,GB18030,ucs-bom,default,latin1" >>/etc/virc

以上代码是基于centos

添加新评论 »