Vim Copy, delete

Source: Internet
Author: User

^ Represents the beginning of a line, and $ represents the end of a row. GG document header, G document footer.

Here is the basic command for VIM copy and paste:
yy duplicates the row where the cursor is located. or uppercase one Y.
2yy or y2y copy two lines. Sunglass, please extrapolate good or bad! :-)
y^ copied to the beginning of the line, or y0. Does not contain the character where the cursor is located.
y$ copied to the end of the line. Contains the character where the cursor is located.
YW copy a word.
y2w copy two words (words).
YG is copied to the end of the file.
Y1G copy to the top of the file.
P lowercase p represents the post to the cursor (bottom).
The P-capital P represents the front (top) of the cursor.

Vim Copy, delete

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.