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.
PuTTY is just a terminal emulator; the Vim registers *
and +
are concerned about the X selection and clipboard; there's no overlap.
PuTTY only allows you to copy the selected terminal contents to the Windows clipboard; when you run tmux, that will inevitably include the window layout.
You need to switch from PuTTY to something that allows real integration, like the Cygwin XWin server, which is a real X Server that integrates the X clipboard with the Windows clipboard. Instead of inside the PuTTY session, you'd ssh -X
into your server, and launch Vim in a Linux terminal, or GVIM directly. Then, yanking via "+y
will work as you'd expect.
Alternatively, if you want to keep using PuTTY, you'd have to use some workaround, like :write
ing the selection to a local file, and transferring that to Windows via scp
, for instance.