As shown in the figure, 1.cmd clearly has content, but when opened by VIM, the content is empty. It seems unrecognizable. How can I edit and save directly in VIM?
The configuration of fenc.. etc. is as follows:
set encoding=utf-8
set langmenu=zh_CN.UTF-8
language messages zh_CN.UTF-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
set termencoding=utf-8
set fileencoding=utf-8
:version Output result:
我这测试是OK的,怀疑应该和vimrc配置有关。注意一下encoding、fenc、fileencodings等编码配置是否正确。