I frequently work with a couple of gvim instances in windows, usually also with several tabs in each instance. Is is possible to have all the gvim instances share a common yank and put buffer, so that I can yank in one instance and put what I just yanked in another instance?

Alternatively, is it possible to have gvim synchronise against the windows clipboard, such that everything I yank gets copied also, and when I put it will past from clipboard instead?

Thanks

link|improve this question

70% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Use the system register *

so *y , and then paste as normal. This'll only work if gvim has clipboard support compiled in.

link|improve this answer
When I push * it immediately starts searching for what is under my cursor at the moment. – bjarkef Nov 19 '10 at 13:16
1  
1  
@bjarkef: the '*' register is the clipboard. you yank to it via "ay ... read :help registers about how to access the registers and how to yank to and copy from one. – akira Nov 19 '10 at 13:49
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.