How do I use Vim's column editing mode?
* Windows
I use VIM for WINDOWS, always heard that Vim has a column editing mode, has not been used, tried several times failed. Today because of job needs, to the online check, after continuous attempts, and finally the use of success, here and everyone to share:
1. Use the following shortcut key in the command mode: ctrl+q, the lowercase q is ok.
2. Then use the HJKL four keys to move and select the related rows and columns, you find you can select a block, you must not use the mouse.
3. If you want to add a column of text to the left of the block, select the chunk, press the uppercase I, and then the cursor automatically to the upper left corner of the block, you can enter the content, you may think how not each column is inserted ah? Don't worry ah, after losing content press Esc key, the miracle happened, each line has added the same content, hehe.
4. If you want to delete a chunk, it is easier to select and press Del to make it easy!
, more features waiting for everyone to find, there are good things to leave a message to me Oh!
[Turn] http://blog.csdn.net/wzhigg/article/details/4367672
* Linux
Delete Column1. Position the cursor where you want to operate. 2.ctrl+v into "visual block" mode, select how many rows this column operates. 3.d deleted.
Insert ColumnKnowledge is slightly different when inserting operations. For example, we insert "()" before each line: 1. Position the cursor where you want to operate. 2.ctrl+v into "visual block" mode, select how many rows this column operates. 3.shift+i (i) Enter what you want to insert. 4.ESC presses two times and the inserted content appears in the selected area of each row.
[Turn] http://www.cnblogs.com/xiaowant/articles/1992923.html
Reprinted from: http://www.cnblogs.com/longdouhzt/archive/2012/03/26/2417870.html
How to use Vim's column editing mode [go]