vim

set fenc

vim ~/.vimrc

set fileencodings=utf-8,gbk

原文地址:https://www.cnblogs.com/lexus/p/3259330.html