The cmd of win10 can be transparent, so I want to use vi mode. The Chinese garbled characters of gvim can be solved. However, the vi mode displays garbled characters and the input is also garbled.
The default encoding of cmd is 936. I tried changing it to 65001, but it was also garbled. I want to set everything to utf-8.
巴扎黑2017-05-16 16:42:02
I haven’t used windows much cmd
, so I don’t know how to set it up.
Have you ever tried cygwin?
Introduction on Wiki:
Cygwin is a collection of free software originally developed by Cygnus Solutions,
Used on various versions of Microsoft Windows, running UNIX-like systems.
The main purpose of Cygwin is to recompile,
Port software on POSIX systems (such as Linux, BSD, and other Unix systems) to Windows
某草草2017-05-16 16:42:02
if has("win32")
set encoding=utf-8,cp936
set fileencodings=cp936,utf-8,gb18030,gbk,chinese,ucs-bom,big5,euc-jp,euc-kr,latin1
set fileencoding=chinese
endif
过去多啦不再A梦2017-05-16 16:42:02
You can read this article, I don’t know if it will be helpful to you http://edyfox.codecarver.org/html/vim_fileencodings_detection.html
PHPz2017-05-16 16:42:02
windows+vim is not a good choice. . A large number of plug-ins cannot be used. If you really love vim, use Linux instead. Under win. . Just make do with it