Vim Configuration in Linux

Source: Internet
Author: User

1) First find the configuration file for vim. VIMRC, enter ls-a view, if you do not create a new

2) Enter the command vim. VIMRC into this file and enter the following statement:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/80/F3/wKioL1dFYDTAaVd8AAApw16Ud-w462.png "title=" 5.png " alt= "Wkiol1dfydtaavd8aaapw16ud-w462.png"/>

Here is a description of the above command:

1: Show Line numbers

2: Syntax highlighting

3: Highlight the current line (just like the last line, there is a dash)

The width of the 4:tab button is set to 4

5: Set the color scheme, here I choose is Murphy

6,7,8: Set auto indent, size is 4

This way your vim can basically write code just like in vs.

The effect is as follows:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/F3/wKioL1dFYOSAMWMeAAAhusKkG-M739.png "title=" 6.png " alt= "Wkiol1dfyosamwmeaaahuskkg-m739.png"/>


Vim Configuration in Linux

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.