Vim Common shortcut keys

Source: Internet
Author: User

DW: Delete the word
d$: Delete from current cursor to line trailer
De: Delete from the current cursor position to the end of the word (including the last character)
d$: Delete from current cursor current position until end of current line
DD: cut when moving forward
YY: Copy current line P: Paste
V Enter version mode to select the operation;
O: In the next line of the current row in insert mode
O: In ... Previous line
X: Delete One of the characters in the cursor
Y: Copy block
HJKL Mobile
U: Undo
% matching parentheses
GG: to the first line
G: to the last line
to Nth line: N is good
0: To the head of the line
$: to the tail of the line
Normal: The function of P enter space in the mode
Window Next block copy: Ctrl + Q
Linux:ctrl+v
Y: Copy the currently selected block, p is the pasted
P: Can be used as carriage return in normal mode:

I: Insert on the left of the current character
I: Inserting at the beginning of the current line
A: Insert to the right of the current character
A: Insert at the end of the current line
o: Insert a new line below the current line!!!
O: Insert a new line above the current line!!!

2w: The cursor moves forward two words

3e: Cursor moves forward to the end of a third word

0: Move to end of line

D Number motion:d 2w Delete a hyphen

DD: Delete Row

NDD: deleting n rows

CW: Change words into insert mode at the same time

Vim Common shortcut keys

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.