Saturday, June 7, 2014

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

On 2014-06-07 14:29, 'Chandra Amarasingham' via vim_use wrote:
> Not sure if I understand the problem correctly, but if are using
> something like putty for ssh, you should be able to highlight the
> text and paste into outlook, etc..., simply highlighting should
> make it available on the clipboard.

[please don't top-post]

This works for small and contiguous blocks of text, but doesn't work
well if either:

1) you want to copy large blocks of text that can't fit on the screen
at the same time (or in the scroll-back buffer)

2) you want to copy via various yank/ex commands such as

:let @+=@%

or where I commonly would do something like

:let @a=''|g/pattern/y A
:let @+=@a

to gather up matching lines and put them in the clipboard.

-tim




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