gedit和vim中文支持

   编辑~/.vimrc文件,加上如下几行:

  set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
   set termencoding=utf-8
   set encoding=utf-8



gedit支持中文,在终端下运行:

gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','GB18030','GB2312','GBK','BIG5','CURRENT','UTF-16']"



你可能感兴趣的:(ubuntu12.04中文支持)