How to set Vim's personal preferences
The default VI many features are not open, we can customize the VI as needed, you need to modify the vi configuration file, the global configuration file in/ETC/VIMRC, but generally only need to modify the user's configuration file can come,
Create a. vimrc file under the user directory
the location of the. VIMRC
there is one under the user's home directory (/home/username). Vimrc/etc There is also a VIMRC
generally only change the user home directory below. VIMRC This profile only needs to be used by the Su-username to make the configuration effective (for example, Su-zhang3) only for user-specific changes
How to view and open the edit under the corresponding folder. VIMRC
. VIMRC use Ls-al for hidden files to view
First enter the PWD clear now path and directory, ~ represents/home/user, if you want to modify the user home directory of the. vimrc file, you can directly input vim ~/.VIMRC edit
Preference Settings Statement
Syntax on automatic syntax highlighting
Set tabstop=4 Set tab length is 4
Set nu! Show line Numbers
Common Keys and usage
A means inserting after the cursor
X means delete
Vim usage (always updated)