Tmux Copy to Windows Clipboard/pasteboard Pits

Source: Internet
Author: User

All of the following are under Windows using Putty to connect to Linux CENTOS6.

I've always wondered why I can't put the copied text into the system's Pasteboard in Tmux mode. Through the layers of obstruction, finally found the reason.

Remove the ~/.tmux.conf

#设置鼠标可用
#setw-G mode-mouse on

If you learn other people's configuration at the very beginning, add this option, then you will find that you can not copy the text under Tmux, remove it.

You can now select the text you want to copy directly, and then right-click to paste it.

Copy and paste in Copy-mode mode:

Bind-key [Enter in Tmux Copy-mode, you can use space to enter the selected mode, press ENTER to copy and exit, press Q do not copy and exit.

This replication is not on the Windows Clipboard.

Can be displayed via Tmux Show-buffer.

Copy to Windows Clipboard in vim mode, this tips reference from: URL

When copying, if directly with the mouse copy, is also vim processing, need to hold down shift is xterm processing,
Later, the use of VNC with server discovery in Vim is also applicable.

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.