Reference: http://xw2423.byr.edu.cn/blog/archives/232
http://www.pythonclub.org/linux/vim/visual-mode
Vim multi-line editing techniques are "Visual Mode" inside.
Visual Mode can enter in three ways:
1. v byte select
2. V Press row selection
3. Ctrl + v to select a rectangular region
The files can be selected as a "text object" in the overall operation
Comparison of simple operations such as
1. d delete the text object
2. y copy the text objects
Operating on sensitive
1. ~ change case
2. U becomes all uppercase
3. u change all lowercase
In front of "text object", insert or
This is the classic scene of a multi-line operation
1. I inserted in front of the "text object" in each row
2. A behind the "text object" is inserted into each line
3. c the "text object" in each row is rewritten to new content
This multi-row into a vertical alignment with respect to both "text object" effective, and the operation is pressing the Esc key to return to normal mode is completed.
Indent forward and backward
1.> Indent forward
2. <Indent Back
By command: set shiftwidth = n set of progressive amount Indent
Multi-line and into a row
1. J all lines of "text objects" where the merger in a row
Reproduced in: https: //www.cnblogs.com/long123king/p/3914651.html