How to use Vim's column editing mode [go]

Source: Internet
Author: User

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]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.