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