Vim Common commands

Source: Internet
Author: User

Ctrl + F scroll down one screen
Ctrl + B scrolls up one screen
/text find text, press N to find the next, press N to find the previous one.
? text find text, reverse lookup, press N to find the next, press N to find the previous
0 (number 0) move to the first character of the bank
$ move to end of line 3$ move to line end below 3 lines
GG moves to the file header.
G (SHIFT + g) Move to end of file

X Delete Current character
DD Delete When moving forward
10DD Delete 10 rows from the beginning of the current line
YY copy when moving forward
Nyy copies the current n rows, such as 2yy to copy the current row and its next row
P is pasted after the current cursor, and if you have previously used the YY command to copy a row, paste it on the next line of the current row.
Shift+p pasting before the current line

U undo (undo)

Vim Common commands

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.