How to copy from tmux running in putty to windows clipboard

Vivek Jha picture Vivek Jha · Jun 22, 2013 · Viewed 24.8k times · Source

ENV: I am running tmux in putty, on a windows 7 laptop. I do ssh to linux systems while working.

I have to solve two glitches with tmux, before using it for all my needs.

  1. I have to copy some text to the windows notepad from vim or the tmux terminal. I have enabled mouse support for both vim and putty.

    I have tried "*y and "+y but both of them doesn't work. If I use putty's ability for copy then it copies the content of adjacent grids also.

  2. I have to copy some content from vim file in one pane to vim file opened in another pane. Is there any vim trick for this. I don't want to use <C-b>[ way of doing it.

Problem 1 is haunting me more, because there is a w/a for problem 2.

Answer

lslab picture lslab · Nov 15, 2013

I use putty v0.62 and tmux v1.8.

tmux config: setw -g mode-mouse on

I want to copy some text from tmux to system clipboard, I press and hold SHIFT and select the text by mouse, then click left-button of mouse.

I want to paste some text into tmux, press SHIFT and click right-button of mouse.