Sunday, September 22, 2013

Re: Question about communication with system clipboard

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 <bugzilla@redhat.com <mailto:bugzilla@redhat.com>>
> Skompilowany przez <bugzilla@redhat.com <mailto:bugzilla@redhat.com>>
> 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.


Best regards,
Tony.
--
The only qualities for real success in journalism are ratlike cunning, a
plausible manner and a little literary ability. The capacity to steal
other people's ideas and phrases ... is also invaluable.
-- Nicolas Tomalin, "Stop the Press, I Want to Get On"

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: