Vim operation--multi-segment reset paste

Source: Internet
Author: User

Vim can be copied and pasted in multiple sections. That is, the content x is copied to the register "1", the content y is copied to the register "2", paste can be selected from "1" or "2" paste.

(1) VIM has 13 pasteboard, respectively 0, 1, 2 、...、 9, A, ", +; use: Reg command to view the contents of each pasteboard.

In vim, simply use Y to copy to the "(double quotation mark) Pasteboard, the same paste with P is the content of this clipboard."

When you need to specify a specific location, you can use the following format:

--"1y$ copy cursor to the end of line to register" 1 "

--"2p Paste Register" 2 "content

(2) Two special locations

--"Number of paste plate (temporary pasteboard) is more special, directly press Y to copy to the Pasteboard, directly press p to paste the contents of this pasteboard;

---The paste board is a system paste board, its content can be used across the boundary;

After you copy the content to the pasteboard with "+y", you can use CTRL + V to paste it elsewhere, so if you want to copy the contents of CTRL + C or right-click elsewhere into Vim, you need to press "+p" in normal mode;

Vim operation--multi-segment reset paste

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.