VIM environment variable configuration, background color configuration

Source: Internet
Author: User

When we use VI or VIM, if we want to display line numbers, we may do this: switch to command mode, then enter set Nu, then press ENTER to display, and we are writing programs, sometimes we would like to press ENTER, the cursor is not always at the beginning of the start, Instead, it aligns with the first non-whitespace of the previous line, that is, the so-called indentation function, which allows you to enter set autoindent in command mode. But every time this input is too troublesome, can you use the VIM command to automatically set the function when editing it?

Briefly describe my configuration steps. The following table is the environmental parameters of vim (in the Book of Bird Brother)

Above are the birds in the private food inside, the following simple record my settings, and later want to add the function to add it on the line

1, use the command: Cd/etc/vim into the configuration directory

2, use the command: Vim VIMRC edit VIMRC file, my Ubuntu need to use command: sudo vim VIMRC

3, in the last line of the VIMRC file, add the options you want to set, is I want to make vim default some features

4, then use WQ to save it, so that the setting is successful.

http://blog.csdn.net/mybelief321/article/details/9011707

VIM environment variable configuration, background color 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.