Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
add comment

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.

share|improve this answer
    
When I push * it immediately starts searching for what is under my cursor at the moment. –  Bjarke Freund-Hansen 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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