Thursday, November 8, 2012

Re: Clipboard copy and paste

On 2012-11-08, Ed Kostas wrote:
> On Thursday, November 8, 2012 7:23:52 PM UTC-2, Tim Chase wrote:

> > Ah, then you want the "+ register. On X systems (Linux, BSD, etc),
> > there are two clipboards[*], one is the "primary selection"
> > clipboard, accessed with "* as you mention. This is the one that is
> > also fed by selecting things in a terminal and retrieved by using
> > the middle-mouse. The other is the "clipboard" clipboard (I can't
> > say I care much for the terminology, but that's history for you).
> > This one is accessed with vim's "+ register and is usually what
> > other applications access when doing a cut/copy/paste that you're
> > used to.
> >
> > I've just taken to using "+ almost all the time on all platforms,
> > since that's *usually* what I mean, unless it's a rare time I want
> > to convert a primary-selection to a clipboard-selection, in which
> > case it's often easiest for me to do that with vim:
> >
> > :let @+=@*
> >
> > Hope that makes better sense of it,
> >
> > -tim
>
> Well, Tim.
>
> I tested the "+ register and it worked as expected. On vim, I
> saved text into the "+ register, and recovered it on Emacs, by
> pressing Ctrl-Y. Thank you for your answer. This group is really
> good. I am learning how to use Vim really fast, thanks to the
> members of this group.

Something else you may wish to try is Parcellite or autocutsel.
Both are programs that can be used to synchronize the primary
selection with the clipboard. Then it doesn't matter which
technique you use to copy or to paste, the copied value goes to
both places.

Regards,
Gary

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: