On Sep 23, 2013 8:48 AM, "Gary Johnson" <[email protected]> wrote:
>
> On 2013-09-22, Tony Mechelynck wrote:
> > On 22/09/13 11:01, Jacek Czaja wrote:
> > >Hi,
> > >
> > >I 'm searching an advice on following problem: copying from vim to
> > >system clipboard. and then using what i copied out of vim.
> > >
> > >What works for me:
> > >1) Start my gvim (configuration below) and i copy given line to *
register
> > >2) I switch to terminal  and insert Shift+Insert and I got it pasted
> > >  And it works like a charm.
> > >
> > >What does not work for me is:
> > >1) Start gvim, copy to * register
> > >2) Close gvim
> > >3) try to paste what I copied to clipboard from gvim before it was
closed.
> > >
> > >And this does not work.  So how can I make it work for me eg. copying
to
> > >system clipboard from vim , closing vim and then using copied value.
> > >
> > >I'm using gvim 7.4.27 from fedora 19 repo
> > >configuration:
> > >VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 11 2013 12:27:48)
> > >Zadane łaty: 1-27
> > >Zmieniony przez <[email protected] <mailto:[email protected]>>
> > >Skompilowany przez <[email protected] <mailto:[email protected]>>
> > >Olbrzymia wersja z GTK2 GUI.  Opcje włączone (+) lub nie (-):
> > [...]
> >
> > Try copying into the + register (the CLIPBOARD) instead. That is what
> > is used by Edit→Paste, Edit→Cut, Edit→Copy.
> >
> > Register * is the SELECTION, filled in many programs by selecting
> > text, and pasted by middle-click.
> >
> > Note that these two registers are different on X11 but not on Windows.
>
> An important difference between these two registers on X11 is that
> the primary selection (Vim's * register) is owned by the
> application, whereas the clipboard (Vim's + register) is owned by
> the X server.  The contents of the primary selection disappear when
> the application owning that memory is terminated.

They are all owned by the application. This fact may be hidden by various
clipboard managers though: they obtain the clipboard and repost it from
their name thus becoming owners themselves. As clipboard manager is a
daemon that normally does not stop it looks like if clipboard buffer is
owned by X server, but it is not.

> See
>
>     :help x11-selection
>     :help gui-selections
>
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
"vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to