Friday, April 20, 2012

Re: gvim auto copy selected text to clipboard

Hi Marcin

I tried, but this not works for me :(

set clipboard=unnamedplus,unnamed,autoselect,exclude:cons\|linux


test case:
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

here is what my gvim version show (+X11 +xterm_clipboard are onboard):

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 6 2011 10:19:44)
Included patches: 1-154
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by buildd@
Huge version with GTK2 GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +conceal +cryptv +cscope
+cursorbind +cursorshape +dialog_con_gui +diff +digraphs +dnd -ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path +float +folding -footer +fork()
+gettext -hangul_input +iconv +insert_expand +jumplist +keymap
+langmap +libcall +linebreak +lispindent +listcmds +localmap +lua
+menu +mksession +modify_fname +mouse +mouseshape
+mouse_dec +mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -
osfiletype +path_extra +perl +persistent_undo
+postscript +printer +profile +python -python3 +quickfix +reltime
+rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime
+statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white +tcl +terminfo +termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit
+visual +visualextra +viminfo +vreplace +wildignore
+wildmenu +windows +writebackup +X11 -xfontset +xim +xsmp_interact
+xterm_clipboard -xterm_save


On Apr 20, 7:26 pm, Marcin Szamotulski <msza...@gmail.com> wrote:
> On 04:56 Fri 20 Apr     , Sergey Vakulenko wrote:
>
> > Hi
>
> > 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        (in win32, this works perfectly )
>
> > Please do not offer hand-click solutions like vmap <C-Insert> "+y
>
> > --
> > 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, visithttp://www.vim.org/maillist.php
>
> You can add unnamedplus to your 'clipboard' setting. See ":help 'cb'".
> For example I use:
> set clipboard=unnamedplus,unnamed,autoselect,exclude:cons|linux
>
> Best regards,
> Marcin Szamotulski

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