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