Simply put, after centos6.3 is installed on a virtual machine, the configuration file without the vim editor is used by default. If necessary, you can customize or configure your vim editor as you like:
1. If you have the root permission, go to the root directory:
[[Email protected] ~] # Cd/root
[[Email protected] ~] #
2. Create a Vim configuration file.Vimrc
[[Email protected] ~] # Vi./vimrc
3. Edit the configuration file and only perform simple configuration here:
: Syntax on
: Set nu
Syntax on is used to enable the color function, while set Nu is used to enable the row number function of the editor.
Finally, Press ESC, And then: WQ save and exit.
During class, the teacher seemed to have said that after a command is typed, the configuration file can take effect immediately. After a large number of Baidu operations, no results were found. Later, because the centos6.3 system is used here, it may take effect automatically after it is saved. Therefore, you do not need to input other commands.