Brisk VIM (5): copying

Source: Internet
Author: User
Brisk VIM (5): copy brisk VIM (4): modify the kernel...
Brisk VIM (5): copy brisk VIM (4): Modify http://www.2cto.com/os/201212/180024.html Copying the same text is particularly effective. in Windows, we are used to choosing the text www.2cto.com with the mouse, while in Vim, you can even operate in visual mode, however, I will skip this section to explain how to copy commands in command mode. before talking about replication, I would like to explain how many methods can be used to copy a simple command paste p paste, however, there are not many posts in the form of pasting, but simply adding numbers to paste posts multiple times is actually an accurate description, p should be placed, but I cannot tell whether it is paste or put or www.2cto.com or ynl. copy n characters to the right, and copy n characters to the left. ynb replicates n words backward. because the copy operation is usually performed when the amount is large, here I use n to replace the number of operations, this does not seem to make much sense, because the complex characters and words have not been directly inserted into the fast line copy y0 copy to the first line y $ copy to the end of the line yy copy the entire line yH copy from the current line at the top of the screen, yL is copied from the current row to the low end of the screen. here, the first two are used less, but the whole row or multiple rows are copied, which is the convenience of yy. tips: 1. 4 YY means copying 4 rows 2. y can be combined with almost any cursor movement command. if you don't believe it, you can try cutting and copy it. here, the cut command is also mentioned, in fact, cut is very simple, that is, delete it first, then press p to paste the post. for example, after dd deletes a row, the row will be placed in the buffer and then moved to the position you want to place. press p to paste the row.
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.