vim 设置,解决中文乱码 Linux

修改或者新建 ~/.vimrc 内容如下 set nu set fileencodings=ucs-bom,utf-8,gb18030,gbk,gb2312,big5,euc-jp,euc-kr,latin1,cp936 set termencoding=utf-8 set fileformats=unix set encoding=prc 同时将putty的语言改成 UTF-8
posted @ 2012-07-16 13:49  adodo1  Views(67)  Comments(0Edit  收藏  举报