Gvim character set configuration in the vim environment

Source: Internet
Author: User
In the quick text editor, vim should be called the King. As code slaves, we cannot always immerse ourselves in powerful editors. I do not deny the power of zend and S, but we should be familiar with at least one simple and quick code editor, don't let people think you are away...

In the quick text editor, vim should be called the King. As code slaves, we cannot always immerse ourselves in powerful editors. I do not deny the power of zend and S, but we should be familiar with at least one simple and quick code editor, don't let people think that you are over when you leave the code. Let people know that the code is your slave. how can you enable them if you want to enable them !!
Today, I recommend vim, the King. I will not talk about this editor much. You can ask baidu and google. In addition, the time is tight, and the power of vim is not two or three sentences. Today I want to talk about how to set the character set in vim.
After you install vim, find its installation path and find the file/vim/_ vimr. this is the vim configuration file. My vim default encoding character set is gbk. I want to change it to utf-8. you can use vim to open this configuration file and add the following code in it:
 
Set encoding = UTF-8
Set termencoding = UTF-8
Set fileencoding = chinese
Set fileencodings = ucs-bom, UTF-8, chinese
 
Set langmenu = zh_CN.utf-8
Source $ VIMRUNTIME/delmenu. vim
Source $ VIMRUNTIME/menu. vim
Language messages zh_cn.utf-8
 
Language messages zh_cn.utf-8
I directly paste the vim installation file to help beginners learn it. if anyone wants vim learning materials, Reply !! Just reply .... Haha, I hope you can support me !!
Sorry, the attachment is too big to upload everyone can download http://down.51cto.com/data/254555 at this URL
Author "You_Can"

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.