vim in cmder under win. The Chinese characters are garbled. I tried various solutions on Baidu... but still can't get it right.
迷茫
迷茫 2017-05-16 16:34:18
0
4
1299

1.As described in the title

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(4)
曾经蜡笔没有小新

Edit the .vimrc file in the user directory. If it does not exist, create a new one and write the following content:

set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
    set fileencoding=chinese
else
    set fileencoding=utf-8
endif
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决consle输出乱码
language messages zh_CN.utf-8

Then the most important thing, cmder new command line option Powershell 不要用 cmd
The system's cmd vim is good, but it doesn't work in cmder. I tried Powershell and found that there is no garbled code.
I am win7 and Powershell is 4.0

小葫芦

Do you have any screenshots? Tell me how you configured it?

迷茫

Is there a solution? I use the vi that comes with cmder

The above is useless. Shift + alt + 2 opens the file and it still has garbled characters.

]

巴扎黑

settings->Environment->Add set LANG=zh_CN.UTF-8

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