Hi, Xquartz is x sever. And I tried ssh - Y.
> On Mar 16, 2014, at 2:02 PM, LCD 47 <[email protected]> wrote: > >> On 16 March 2014, Li Xue <[email protected]> wrote: >> 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? > > You need to run an X server on your machine, and you need a ssh > connection with ForwardX11Trusted, that is, "ssh -Y" (and it actually > has to succeed; see "ssh -v -Y" to make sure). "ssh -X" is not enough. > >> 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" > > It's probably a good idea to drop "unnamed", and escape '\'. Put > something like this in your remote vimrc: > > set clipboard=unnamedplus,autoselect,exclude:cons\\\\|linux > > This will make Vim use the '+' register for all yank, delete, > change, and put operations, which many people find easier to work with. > >> 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. > [...] > > Open xclipboard on the local machine, and yank a line in the remote > vim. You should see the line appear in xclipboard, and this should work > both with a remote gvim, and with a remote console vim. > > /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 > [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.
