Talk vim together (14th: Vim plugin configuration file)

Source: Internet
Author: User


Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we summed up the Dragon Slayer knife: Vim's

All kinds of knives. This time, let's not talk about Vim's skill. Let's talk about Vim's plugin today. Well, that's the word, the gossip,

Words return to the positive turn. Let's talk about vim together!


Crossing, Linux applications have a feature, that is, there is a configuration file (called startup files or initialization files can also), through the

Modify the configuration file to define the properties of the application itself. Vim is a classic text editor on Linux, and it's no exception, with vim

There are two files:

A:/etc/vim/vimrc

B:/HOME/USERNAME/.VIMRC (the username here is the user name on Linux)


When Vim is started, the values in the configuration file are read to set the relevant properties of vim. Read the value in a, then the value in B.

Typically, you can modify the configuration file if you have settings for the VIM-related properties. Configuration file A is for all users on Linux

, so we recommend that you modify the configuration file B, which is for each user on Linux, different users have different set values, and

Each user does not affect each other, which can be seen from the path of the file.


Crossing, when we know what a vim profile is, let's say, how to set the configuration file. Let's take the first example.

Child Open the configuration file, enter set Nu in the file, and then save. Using VIM to open a file, you can see the file in the left

The line number appears on the edge. It's amazing. This is actually an example of setting vim properties. We used the SET command in the example to set the line

Number (set Nu). Vim reads the configuration file at startup, and it discovers that the configuration file has a property that displays the line number, so the file is opened in the

The line number is displayed at the far left of the file.


Crossing, the properties of vim are more, we are today mainly about what is a configuration file, and how to modify the configuration file to set the VIM

Property. As for the setting of what kind of property, we will have a special explanation in the later chapter back. You can set it according to your own habits.

Vim's properties, which is one of the reasons why Vim is more popular.


Everyone crossing, about Vim's configuration file, today is said here so far. We'll also show you how to do this in the configuration file in a later chapter
Set the other properties of vim. What do you want to know about your funeral? and listen to tell.


Talk vim together (14th: Vim plugin configuration file)

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.