Vim Use Notes

Source: Internet
Author: User

Vim configuration file. VIMRC generally has 2 locations

1 is in/directory

2 is in the ~ directory

If there is a configuration file in the ~ directory then it will not read/directory under the configuration file

If you do not know which directory the Vim is using now, the following configuration file can be typed in: Echo $MYVIM to view the configuration file path

Because everyone has a set of their own use of the editor's habits, so the recommended configuration file in the ~ directory so that it does not affect the use of other accounts, of course, only one user in the/directory is not a problem

In this case only ~ directory for example/directory the same

First in the ~ directory to create a hidden folder vim and then set up a folder, this folder is not necessary, but for the convenience of use or set up a folder here

which

The theme files in colors are usually. vim files because these files are written in vimscript language

If you are interested in learning this language can be based on your own needs to write or modify some plug-ins, here is recommended a learning address http://learnvimscriptthehardway.onefloweroneworld.com

A variety of help documents are stored in doc

Plugin is vim in the various plug-in files are generally written in vimscript also useful python written such as Xdebug Tools debugger

Syntax is a syntax highlighting file used to configure the different languages of the highlighting syntax is the look of the colorful kind of

One of the most important files is our configuration file. vimrc

Create a. vimrc file under the ~ directory touch. VIMRC

Then open the. VIMRC vim. VIMRC

Then I

Insert

Set Nu

Syntax on

Then you can see the syntax highlighting and the line number by re-loading the configuration file in the mode so $MYVIMRC:

Vim Use Notes

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.