[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pipe mutt message into vim



on Fri, Dec 07, 2001 at 08:40:28PM -0800, Karsten M. Self (kmself@ix.netcom.com) wrote:
> on Fri, Dec 07, 2001 at 05:31:26PM +0000, Rory Campbell-Lange (rory@campbell-lange.net) wrote:
> > I'm unclear about pipes! I frequently wish to pipe the contents of a
> > message I'm reading in mutt into vim, edit the contents to a saved file
> > and then return to mutt.
> > 
> > I have simplistically tried from mutt "|" then "vim" from the mutt shell
> > prompt, which doesnt work. I guess I want to do the equivalent of 
> > 
> > cat < /tmp/xyz
> > 
> > but where xyz is the contents of the current message.
> > 
> > Before you ask, I do know how to save mutt messages!
> 
> It's not clear to me what it is you're really trying to do.
> 
>   - "E" will invoke an editor on the current message.
> 
>   - You can also save a message to a file and edit this file.

Slick.  dman replied offlist, I learned something.  vim does pipes:

    $ df | vim -

...which results in an editable buffer.

Thanks.

-- 
Karsten M. Self <kmself@ix.netcom.com>       http://kmself.home.netcom.com/
 What part of "Gestalt" don't you understand?             Home of the brave
  http://gestalt-system.sourceforge.net/                   Land of the free
   Free Dmitry! Boycott Adobe! Repeal the DMCA! http://www.freesklyarov.org
Geek for Hire                     http://kmself.home.netcom.com/resume.html

Attachment: pgp99oTexI0Yw.pgp
Description: PGP signature


Reply to: