The solution of the garbled problem of vim under Windows

Source: Internet
Author: User

The solution of the garbled problem of vim under Windows

Vim default encoding is GB2312, no utf-8 to choose for us, so we have to configure ourselves:

The specific configuration is as follows:

Open the VIM installation directory under the _VIMRC, add a few words in the header configuration statement can be done:

01

Set default encoding

02

Set Encoding=utf-8

03

Set fileencodings=utf-8,chinese,latin-1

04

If has ("Win32")

05

Set Fileencoding=chinese

06

Else

07

Set Fileencoding=utf-8

08

endif

09

10

Resolve Menu Garbled

11

SOURCE $VIMRUNTIME/delmenu.vim

12

SOURCE $VIMRUNTIME/menu.vim

13

14

Troubleshoot console output garbled

15

Language Messages Zh_cn.utf-8

1

Furthermore, we strongly recommend that you change its color, the default white too dazzling

2

Similarly, add a sentence configuration is good (this desert desert theme is looking at the most comfortable, do not like to change their own)

3

ColorScheme Desert

1

Some of the other useful

2

Add line number

3

: Set Number

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.