Vim implementation of the full selection function

Source: Internet
Author: User
have been looking to see if there is a quick way to Select all , but the internet is a lot of repetition, and wrong, such as:
1, $y, what it is. To write will also be written: 1, $y, but I tell you, written: 1, $y is all copied, not all selected
DG, this is even more misleading, which is to delete the contents of the line to the last line where the cursor is located (including the contents of the line where the cursor is)
It's all over here. Select the correct answer:
Ggvg
Explain the above command a little bit.
GG Let the cursor move to the first line, in vim only valid, vi invalid
V is into visual (visual) mode
The G-cursor moves to the last line
The contents of the selection can be followed by other actions, such as:
D Delete the selected content
Y Copy the contents of the selection to number No. 0 registers
"+y copies the contents of the selection to the + register, which is the system's clipboard, for other programs
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.