Friday, June 6, 2014

Re: vim: how to copy selected text from vim running inside a remote ssh session, to local windows clipboard

Ben Fritz wrote:
> On Thursday, June 5, 2014 11:03:49 PM UTC-5, ping wrote:
>> experts:
>> not sure this was asked before...
>> I run ssh into remote pc(linux) from local PC (windows),
>> run vim from within ssh
>> then select some text from vim
>>
>>
>>
>> now I want to paste these text into local clipboard (so I can paste into outlook, etc).. is there any good way to implement this?
>> I currently rely on dropbox to sync all change and open the file with notepad...but really want to know of any other better solutions..
> You can run an X server on your Windows machine. For example: Xming, X-Win32, something in Cygwin, Xceed, and I'm sure there are others. Then you just need a Vim running on your server with X clipboard support (or run gvim).
>
An alternate procedure would be to run vim locally and use netrw to work
with the remote machine (vim scp://user@remotemachine/path/file). That
way you could use the local clipboard.

Regards,
Chip Campbell

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: