vim打开中文文件乱码

解决办法:

vi ~/.vimrc

set fileencodings=gbk,ucs-bom,utf-8,default,latin1

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.