Hi Christian, Thanks for your reminder of the x11. You are right that I need to start a X11 server. If I start X11 server, sometimes I can copy from a remote vim to the clipboard on my local mac. But if I log out of my account from my mac machine, it does not work again. Do you think it might be a bug in vim?
Here are my steps: 1. start xquartz and open a terminal inside xquartz 2. from this terminal, type ssh -X remote_host_name (I also tried -Y) 3. for the remote vim I set ":set clipboard=unnamedplus,unnamed,autoselect,exclude:cons\|linux" 4. use vim open a file from the remote_host_name 5. inside vim, type yy to yank a line into system clipboard, and if I am lucky with this ssh session, I can paste that line into a text editor on my local mac machine. To test whether xterm forwarding is working properly, inside the ssh session, I also typed "xterm &", and my local mac machine can always open xterm. Li On Sat, Mar 15, 2014 at 12:37 PM, Christian Brabandt <[email protected]>wrote: > Hi Li! > > On Sa, 15 Mär 2014, Li Xue wrote: > > > Hi Christian, > > > > I am using ssh (with -X option) from mac into a linux machine (Ubuntu > > 12.04.3 LTS). I use vim 7.4 to open files on the linux machine and had > > hoped to copy into the system > > clipboard on my local mac machine. However, both "+yy and "*yy do not > work > > for me. Do you happen to have any idea how to make it work? Many thanks. > > > > Here is what I got after typing :version inside vim: > > > > 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 > > I am not sure, this is supposed to work and I don't have any experience > with Mac so I can't be of any help, sorry. You might need to start an > X11 server on your Mac, but I am not sure. You might also want to try > using ssh -Y option. > > Best, > Christian > -- > Leiden, Irrtum und Widerstandskraft halten das Leben lebendig. > -- Gottfried Keller > > -- > -- > 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 > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 the Google Groups "vim_dev" 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/d/optout.
