7
2
I want to yank text with a command to vim and have it end up in screen's clipboard where it can be pasted to a different application via ^A] later. vim needs to do the copying (not screen's copy mode) because I have more text than will fit on screen at one time.
Answers to other questions have approached this issue, but they mostly rely on using vim's interfaces + and * to the X clipboard, which is not available to applications started remotely or not in the presence of an X session to begin with. I'm working through puTTY, but that's incidental as I just want to transfer between screens and not [necessarily] out to local.
The best thing would be the existence of a magic buffer in vim that connects to screen, but I'll listen to workarounds : )
I use Putty (Windows to Linux), for me I can highlight the text in the tty by holding the left mouse button down, then clicking the right mouse button (without lifting the left button). This copies the highlighted section, and I can use the traditional ctl + V, in my local Windows machine. to reverse the process I can ctl + c in windows, then in the tty terminal navigate to the location where I want to paste and just use the right mouse button to paste. Is that what you're looking for? – Ben Plont – 2014-07-31T22:03:29.443
@BenPlont The OPs question is very different from what you're describing. They're looking to get vim to copy to screen's copy-paste buffer. What you're describing is copying text from a terminal into your system copy-paste buffer.
– ernie – 2014-07-31T22:30:21.967