Vim column block Operation

Source: Internet
Author: User

Vim column block Operation
1. There are three ways to enter the visual mode: v, V, CTRL + V (1) Enable the visual mode by v. You can select the content by a single character and move the cursor to select. For example:
(2) Press V to enable visual mode. Immediately select the row where the cursor is located, and press the single line character to select the content. move the cursor to select.


(3) press CTRL + V to enable the visible column block mode. You can select a single character in the column direction and move the cursor to select

Ii. Column Block Mode
CTRL + v: Enable block visualization. Move the mouse to select a rectangle. You can use this function for regular tables. Currently, the cursor is in the lower right corner. You can move the cursor at the four corners of the block by pressing o and O to switch the four vertices.

(1) Delete or cut operation (a). Press "d" to delete the selected region.
(B), press "D" to delete the data behind the selected region and row

(2) input operations
Press CTRL + v to enter the column block mode. Select the place where you want to add the content.

Press "I" to enter the insert, and then enter "//" (the character you want to enter)
Then press "ESC" to enter the characters you want to enter in other lines.

(3) copy and paste CTRL + v to enter the column block mode. Select the content to be copied.

Copy the content according to "y". Four lines of yanked are copied.

Move the cursor to the beginning of the line and press "p" to input content in the column behind the cursor, press "P" to input the content in the column before the cursor. Press "p" to increase the effect of "P ".

 

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.