/etc/vimrc
Rpm-qa|grep vim This command, how VIM has been properly installed, will display the names of the above three packages
Install all
Yum-y Install vim*
Control+p/control+n Code Auto-completion
Yum Install Automake
1. Multi-line Comment: 1. First press ESC to enter command line mode, press CTRL + V to enter the column (also known as block) mode; 2. Use the upper and lower keys at the beginning of the line to select multiple lines needing comments; 3. Press the keyboard (uppercase) "I" key to enter the insertion mode; 4. Then enter the comment symbol ("//", "#", etc.); 5. Finally press the "ESC" key.
Note: After pressing the ESC key, will wait a moment to appear the comment, do not worry ~ ~ Time is very short 2. Delete Multiline Comment: 1. First press ESC to enter command line mode, press CTRL + V to enter the column mode; 2. Select multiple lines to uncomment; 3. Press "X" or "D".
Note: If it is a "//" comment, it needs to be done twice, and if it is a "#" comment, it can be 3 at a time . Multiline Delete
1. First in command mode, enter ": Set Nu" To display the line number;
2. Determine the row you want to delete by line number;
3. Command input ": 32,65d", enter, 32-65 lines will be deleted, soon Czech bar
If you accidentally delete the wrong, you can use the ' U ' key recovery (Command mode)
Vim Configuration method