VIM Basic Configuration

Source: Internet
Author: User

Vim function is very powerful, but has been useless proficiency, will only use some basic functions, in the good plug-in configuration is not configured to use this basic configuration. Study slowly later

Vim Change basic configuration vim default configuration is not satisfactory, but also need to configure the default profile is:/ETC/VIM/VIMRC We can set up our own configuration file in the home directory to switch home directory #cd ~ Touch a file named. VIMRC (starting with a. Hide file)
#VI. VIMRC#Enter the following configuration:Set nocompatible#do not use the VI default keyboard layoutSet number#Show Line NumbersSet Autoindent#Auto AlignSet Smartindent#Smart AlignmentSet Showmatch#Bracket Matching patternSet ruler#Show status LineSet Incsearch#query is very convenient, such as to find the book word, when input to/b, will be automatically to the beginning of the word, when input to/bo, will automatically find the first Bo beginning word, and so on, when you look, use this setting will quickly find the answer, when you find the word to match, don't forget to enter .Set tabstop=4#Tab key is 4 spacesSet shiftwidth=4#4 Spaces interleaved between rows when changing linesSet softtabstop=4#set (Soft) tab width to 4Set Cindent#C language Format alignmentSet Nobackup#do not back up files

VIM Basic Configuration

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.