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