First use of VIM

Source: Internet
Author: User

Whether it's Linux or Cygwin, Vim will need to be configured when the system has just been installed and vim is used. In the case of not configured, like the arrow keys, enter, BACKSPACE will not be the normal response. Because Vim uses the VI operating mode by default.

Not much to say, on the code.

Vim ~/.VIMRC into the vim edit state. Press I to enter the plug-in mode, enter or paste the following configuration content (specific property item meaning self-understanding):

Set Fenc=utf-8
Set fencs=utf-8,ucs-bom,euc-jp,gb18030,gbk,gb2312,cp936
Set NOCP
Set number
Set AI
Set Si
Set tabstop=4
Set sw=4
Set ruler
Set Incsearch
Set Showmatch
Set matchtime=5
Set ignorecase
Set Backspace=indent,eol,start
Set HELPLANG=CN
Set Encoding=utf-8
Syntax enable
Syntax on
ColorScheme Desert

Press ESC to exit the Vim plugin mode and press: wq! to save the current changes.

Once again into Vim, you can find that Vim is already available in the normal editor.

First use of VIM

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.