在vi、vim中编辑文件发现中文是乱码:
解决方法:
0 1 2 3 4 5 |
[root@hz images]# cat ~/.vimrc set fileencodings=ucs-bom,utf-8,gbk,gb2312,cp936,gb18030,big5,latin-1 set encoding=utf-8 set termencoding=utf-8 set fileencoding=utf-8 [root@hz images]# . ~/.vimrc |
申明:本文由BYRD原创,未经许可禁止转载! SourceByrd's Weblog-https://note.t4x.org/system/vim-chinese-garbled/
申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!