Friday, June 6, 2014

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

W dniu piątek, 6 czerwca 2014 05:03:49 UTC+1 użytkownik ping napisał:
> 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..

Do you have to use ssh the tool, and vim visual selection, as such? With an ssh client such as putty, you can simply select the text in the putty window and it appears in the Windows clipboard.

This doesn't work with selections done using vim commands (e.g. "V"), so may not be what you want. I guess putty is actually copying the text from its local buffer for its own Window into the clipboard.

regards,
Geoff

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

Post a Comment