Individual configuration of VIM (easy programming)

Source: Internet
Author: User

Create a new VIMRC in the user's home directory. For example:Vim ~/.VIMRCthen you can copy it in. The configuration is as follows:
"turn off VIM consistency principleSet Nocompatible"Show Line NumbersSet number"sets the row and column information for the cursor in the lower-right corner of the editing processSet Ruler"Show the command being entered in the status barSet ShowCmd"Set History bar numberSet history= +"set cancel Backup to prevent temporary file generationSet Nobackupset noswapfile"setting the matching modeSet Showmatch"set up a C + + mode for automatic alignmentSet Autoindentset cindent"turn on the syntax highlighting featuresyntax Enablesyntax on"Specify a color scheme of 256 colorsSet t_co= the"Ignore case when setting searchSet ignorecase"Configure how the BACKSPACE worksSet backspace=Indent,eol,start"settings can be used with the mouse in VimSet mouse=a"Set Tab WidthSet tabstop=4"set the number of auto-ZilinSet shiftwidth=4"You can delete 4 spaces when you set the backspace barSet Smarttabset softtabstop=4"automatically convert the TAB key to a spaceSet Expandtab"Setting the Encoding methodSet encoding=utf-8"automatically determine the encoding when you try the following code in turnSet fileencodings=ucs-bom,utf-8, cp936,gb18030,big5,euc-jp,euc-kr,latin1"Detecting file Typesfiletype on"take different indents for different filesfiletype indent on"Allow pluginsfiletype plugin on"Start Smart CompletionFileType plugin indent on

Individual configuration of VIM (easy programming)

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.