Vi shortcut key accumulation, vi shortcut key

Source: Internet
Author: User

Vi shortcut key accumulation, vi shortcut key

You may have forgotten what you have used, what you have not remembered, or when you have used it.

1. Select All and copy and paste them.

Select All:
GgVG
// Note:
Move gg cursor to first line
V enters Visual mode
Move the G cursor to the last row and select all

You can perform other operations, such:
"+ Y copy the selected content to the + register, that is, the system clipboard for other programs to use.
D. Delete the selected content.
Y: copy the selected content to register 0.

Copy and paste the selected content to another file:
Y replication (selected)
: Ex B to B file
P Paste
: Wq Save & Exit

2. Exit Without saving

Exit Without saving: q! Mandatory! Is behind, not before q. Always wrong before ~

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.