Hi Sergey!

On Mo, 23 Apr 2012, Sergey Vakulenko wrote:

> Hi
> 
> I would like to propose this theme for GVim future feature  (new
> options for "set clipboard")
> For someone who know very well gvim source code, its simple to
> implement (i think).
> 
> Context of problem:
> ----------------------------
> 
> I wonder, how i can enable auto copy of selected text into '+'
> register in Ubuntu (to share clipboard between apps).
> i have  set guioptions+=a
> 
> my test case (with behave mswin):
> 1) open gvim
> 2)shift-v, move cursor and Esc (select lines in visual mode)
> 3)go to firefox and click ctrl-v or ctrl-Insert

What is the problem with yanking the selection first?

> In Win xp this works perfectly. But not in X (my example is Ubuntu
> 11.10 )
> I know that in X system this works different way and i tried to solve
> this in this thread:
> 
> "gvim auto copy selected text to clipboard"
> http://groups.google.com/group/vim_use/browse_thread/thread/d2d8516f9465301a/fae6c620e232af00?lnk=gst&q=vakulenko#fae6c620e232af00
> 
> http://stackoverflow.com/questions/10259366/gvim-auto-copy-selected-text-to-system-clipboard-to-share-it-with-apps
> 
> conclusion: its impossible configure gvim to auto copy selected buffer
> in + register.

It is not. Simply yank the selection and with 'cb' set to unnamedplus, 
you'll have the contents available to paste with Ctrl-C in firefox or 
use a clipboard manager like parcellite or glipper or klipper or 
autocutsel to keep both X11 buffers in sync.

> small resume of main (first) thread:
> 
> I have many proposition how to auto copy selected(visual) buffer in +
> register.
> But no one not work in way described in Subject. Major propositions:
> 1) use mouse click copy
> 2) ctrl-insert bind "y+
> 3) use third party clipboard.
> 
> 
> There is no solutions but workarounds. Hence, it will be nice have
> this feature in gvim.

Anyway, I have a patch, that changes the behaviour of the 'cb' option 
when 'autoselect' is included to always copy the selection in both X11 
buffers. But you'll lose the X11 clipboard then and I don't think this 
is really useful. 

Mit freundlichen Grüßen
Christian
-- 
Stirbt der Bauer schon im Mai, wird ein Fremdenzimmer frei.

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui