Basic configuration of Vim editor under CentOS

Source: Internet
Author: User

There are two ways to set the VIM editing environment configuration:

1, is set in/ETC/VIMRC, this setting method will function with all users logged into the Linux environment. It is not recommended.
2, create a. vimrc file in the ~ directory where the user is logged in, setting up a custom programming environment where other users are not interacting with each other.

Specific methods:
In the file, enter:

Set Nu         //This is the setting to display the line number set  Showmode   //set at the bottom of the command line interface to display the current mode and so on. Set   ruler     //display the number of rows in the lower right corner of the cursor, etc. set autoindent   //settings each time you click the ENTER key, the cursor moves to the next line with the starting character of the previous line aligned syntax on    // That is, set syntax detection, when editing C or shell script, the keyword will be displayed in a special color ...

Basic configuration of Vim editor under CentOS

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.