mac打不开txt文件 2017-05-31 本文已影响30人 米奇贴 可以在~/.vimrc 文件中添加以下内容: set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936 这样,就可以让vim自动识别文件编码