Make the configuration file of the edited Vim Editor take effect immediately (it takes effect automatically)

Source: Internet
Author: User

Simply put, after centos6.3 is installed on a virtual machine, the configuration file without the vim editor is used by default. If necessary, you can customize or configure your vim editor as you like:

1. If you have the root permission, go to the root directory:

[[Email protected] ~] # Cd/root
[[Email protected] ~] #

2. Create a Vim configuration file.Vimrc

[[Email protected] ~] # Vi./vimrc

3. Edit the configuration file and only perform simple configuration here:

: Syntax on
: Set nu

Syntax on is used to enable the color function, while set Nu is used to enable the row number function of the editor.
Finally, Press ESC, And then: WQ save and exit.

During class, the teacher seemed to have said that after a command is typed, the configuration file can take effect immediately. After a large number of Baidu operations, no results were found. Later, because the centos6.3 system is used here, it may take effect automatically after it is saved. Therefore, you do not need to input other commands.

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.