Vim Common Command Summary

Source: Internet
Author: User

1. Open multiple Windows

Split up and down open the window

Vsplit around the window

Switch between CTRL + WW Windows

CTRL + WQ launch Current window

2. Move the cursor:
Figure 0: Move the cursor to the beginning of the current line
$: Moves the cursor to the end of the current line
G: Move to the last line of this file ng:n is a number, moving to the nth row of this file.
GG: The first line moved to this file is equivalent to 1G

3. Delete, copy, paste
Ndd:n is a number. From the beginning of the cursor, delete the down n column.
YY: The line where the cursor is copied.
Nyy:n is a number. The next n rows where the cursor is copied.
P,p:p Pastes the copied data to the next line of the cursor, and P is the previous line that is affixed to the cursor.
U: Restore previous action
CTRL + R: Redo the previous action.
decimal point '. ': Repeats the previous action.

4. Edit mode:
O,o: This is the case of the English O. o Insert a new line at the next line in the row where the current cursor is located. O means ' insert a new line at the top of the line where the current cursor is located '.
5. Block selection (visual block)
V-character selection, where the cursor passes through the counter-white display
V-line selection, the line that the cursor passes through is white
Ctrl + V block selection, you can select the data in a rectangular way
Y Copy the anti-white place
D Remove the anti-white place

Vim Common Command Summary

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.