Hi lcd,

Many thanks for your detailed instructions and explanations! I really
appreciate it!

I did the steps you told me and in fact my yanks can appear on both the
remote and local xclipboard windows, even though I still cannot paste the
results on the local machine. So the remote transmission works.

Do you happen to have any idea why I cannot paste my yanks on the local
machine?

Many thanks.

Li




On Sun, Mar 16, 2014 at 5:11 PM, LCD 47 <[email protected]> wrote:

> On 16 March 2014, Li Xue <[email protected]> wrote:
> > Hi lcd,
> >
> > Thanks for your reply.
> >
> > Do you mean that I should try ssh -v -Y?
>
>     The difference between "-X" and "-Y" is that with "-X" the remote
> host's connections to your X server are subject to X11 security
> restrictions, while with "-Y" they aren't.  Adding "-v" makes ssh print
> debugging messages.  You should run it once, to make sure "-Y" succeeds.
> If you get a message such as
>
>         X11 forwarding request failed on channel 0
>
> before ssh gives you the prompt, it didn't work, and you need to change
> the sshd configuration on the remote machine.  If you don't get that
> message you're fine and you can forget about "-v".
>
> > I am new to vim. I do not know how to run xclipboard both on the local
> > and the remote machine. Could you please give me a more detailed
> > instruction?
>
> (1) edit vimrc on the remote machine, and change clipboard as I
>     mentioned in the previous message;
> (2) on the remote machine, run "xclipboard &"; this should open a small
>     window;
> (3) on the remote machine run vim and yank a few lines; you should see
>     them appearing in the small window;
> (4) close the small window;
> (5) on the local machine, open a new terminal and run "xclipboard"; this
>     should open another small window;
> (6) on the remote machine run vim again and yank a few lines; you should
>     see them again appearing in the small window.
>
>     Keep the xclipboard window open and watch it while you work.  If you
> see your yanks appearing there, remote transmission works, regardless of
> whether you can actually paste the results on the local machine.
>
> > Do you happen to have any idea why my steps *randomly* work in
> > different ssh sessions?
>
>     Failing randomly seems improbable.  More likely either your yanks
> get to the '*' register and they aren't transmitted over the line (only
> the ones in the '+' register are sent), or your testing procedure is
> flawed in other way.  The definitive test is whether your yanks appear
> in xclipboard.
>
>     /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.
>



-- 
Xue, Li
Post-doctoral Research Associate
College of Information Sciences and Technology
Penn State University
Email: [email protected]
Web site: http://www.cs.iastate.edu/~lixue/

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

Raspunde prin e-mail lui