vim - vi Chinese garbled code under windows
黄舟
黄舟 2017-05-16 16:40:02
0
5
735

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.

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(5)
巴扎黑

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

某草草

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梦

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

世界只因有你

Try pycharm

PHPzhong

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

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