中文 English

Vim opens the file with Chinese garbled characters

Published: 2021-05-15
vim Linux

Solution

set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8