Three modes of visualization:
v activates the character-oriented visual mode, v activates the line-oriented visualmode, and CTRL +v activates the visual mode for the column block ;
Select Highlight Area:
The above v is a combination of commands that can be used with the jump instruction and the instruction range.
Such as: VL, Vaw,viw, VAP, Vgg, VG, VW,VB, vge, etc.;
Command:
GV: The last highlighted selection is re-elected;
O: Indicates the active end of the toggle highlight selection;
Tip: Whenever possible, use the operator command instead of the visual command;
In column block mode:
Once you have selected a piece, you can do the following:
A: Insert the content after the selected block;
I: Insert the content in front of the selected block;
D: Delete the selected block;
C: Delete the selected block and enter the insert mode;
R: Change the contents of the line to the specified character;
In addition, when the back is not aligned, you can use the $ key to select the end of the line, also, I and a can not be used, they follow the different conventions;
In row block mode:
D: Delete the selected block;
C: Delete the selected block and enter the insert mode;
R: Change the contents of the line to the specified character;
Reference: Vim practical Tips, Second edition, Drew Neil; translation: Yang Yuan, Che Wenlong;
Knowledge of the visual mode under Vim