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"