Linux Vim Editor access to system Clipboard

Source: Internet
Author: User

By default, Vim uses a built-in register instead of an X Window's clipboard

Enable system Clipboard Support

You can use vim --version | grep clipboard the view, if the Clipboard is displayed before the tag, - but not + the marker, indicating that the Clipboard cannot be accessed.
You need to install Vim's X environment support and install it using the Package Manager gVIM .

How to use

*the method is available with an indication that no clipboard support is required.

Command mode
  • Added before operations such as Cut copy “+ , such as cut dd "+dd -and-copy, yy"+yy
Edit mode
  • * Use Ctrl + Shift + V to paste the contents of the Clipboard
Command mode and edit mode are common
  • * Use Shift + Insert to paste the contents of the Clipboard directly

Linux Vim Editor access to system Clipboard

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.