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.
Could you please tell me how to use your vim patch? I am new to vim.
Many thanks.
Li
Huge version with GTK2 GUI. Features included (+) or not (-):
+arabic +cmdline_info -ebcdic +fork() +listcmds +mouse_netterm +persistent_undo +signs +terminfo +vreplace
+autocmd +comments +emacs_tags +gettext +localmap +mouse_sgr +postscript +smartindent +termresponse +wildignore
+balloon_eval +conceal +eval -hangul_input +lua -mouse_sysmouse +printer -sniff +textobjects +wildmenu
+browse +cryptv +ex_extra +iconv +menu +mouse_urxvt +profile +startuptime +title +windows
++builtin_terms +cscope +extra_search +insert_expand +mksession +mouse_xterm +python +statusline +toolbar +writebackup
+byte_offset +cursorbind +farsi +jumplist +modify_fname +multi_byte -python3 -sun_workshop +user_commands +X11
+cindent +cursorshape +file_in_path +keymap +mouse +multi_lang +quickfix +syntax +vertsplit -xfontset
+clientserver +dialog_con_gui +find_in_path +langmap +mouseshape -mzscheme +reltime +tag_binary +virtualedit +xim
+clipboard +diff +float +libcall +mouse_dec +netbeans_intg +rightleft +tag_old_static +visual +xsmp_interact
+cmdline_compl +digraphs +folding +linebreak +mouse_gpm +path_extra +ruby -tag_any_white +visualextra +xterm_clipboard
+cmdline_hist +dnd -footer +lispindent -mouse_jsbterm +perl +scrollbind +tcl +viminfo -xterm_save
--
--
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
---
You received this message because you are subscribed to a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/G1Def0Fj27U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/lcd
--
--
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
---
You received this message because you are subscribed to a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/G1Def0Fj27U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/lcd
--
--
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
---
You received this message because you are subscribed to a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/G1Def0Fj27U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
/lcd
--
--
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
---
You received this message because you are subscribed to a topic in the Google Groups "vim_dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_dev/G1Def0Fj27U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.