Vi column Mode

Source: Internet
Author: User

We can see that vi has the column mode, that is, you can insert some content in batches in a column of a specified row. It is quite practical and the record is as follows.

Original content

Press ctrl + v in command mode (ctrl + q in windows, if you use ms compatibility mode, because ctrl + v is occupied by windows) to enter the visual block mode, when you move the cursor, you can find that some columns in the row are selected, and the position of the columns in the selected row will insert the same content. Here we use the insert content in a column, so place the cursor at the position to insert, select the row, and press shift-I (if you want to insert after the cursor, press shift-a for the reason you know), enter the content you want to insert, and then press ecs. You can see that the specified column of the selected row inserts the same content.

Here I select the first three rows, and the third row has a cursor, so you cannot see the blue selection mark, but do not doubt that it is selected.

Insert hehe

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.