gvim - VIM error when editing BAT file, prompting "Unable to open and write the file"
大家讲道理
大家讲道理 2017-05-16 16:41:31
0
1
647

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:

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
左手右手慢动作

My test is OK. I suspect it has something to do with the vimrc configuration. Pay attention to whether encoding, fenc, fileencodings and other encoding configurations are correct.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template