Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question
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
@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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .