Gary Johnson wrote:
On 2009-09-03, Patrick Gen-Paul <[email protected]> wrote:
Gary Johnson wrote:

[..]

Is their anyway I could copy something mutt+vim to the clipboard and retrieve it in Seamonkey via a Ctrl-V for instance?

Ahem.. "there"..? maybe - I'll have to remember proofreading one's mail is not an option.

For vim, it depends on your terminal and on the way vim was built
and configured, but you can usually access the clipboard from vim
via the + and/or * registers.  For example,

    "+yiw

will yank the word under the cursor to the clipboard.  See

    :help x11-selection

for more on this.

There is no way that I know of to do this from mutt.  However, there
is a command-line interface to screen, so you might be able to
transfer the contents of screen's copy buffer to the X clipboard
(actually the selection or cut buffer) by using a mutt macro calling
screen and xclip.  I've never looked into doing that, though.

Seems that doing it in screen rather than vim would be the better choice since it would work with every application that I use on a daily basis.

I could even use it in ELinks when I'm faced with one of those annoying messages that tell me that I need to install a better browser because mine does not support JS and then have to go through the motions of starting Seamonkey, copy/paste the URL.. etc.

Does not happen very often, but a nuisance when it does.

I'm pretty sure that a bit like mutt, gnu/screen supports piping its commands to an external application, but I'm don't see at a glance how this could be implemented.

I'll play with it a bit and ask the screen-users list if I'm stuck.

Thanks much for your comments..!

Gen-Paul.

Reply via email to