On Fri, Jan 07, 2000 at 01:31:03PM -0600, Aaron Schrab wrote:
> At 11:25 +0200 07 Jan 2000, Mikko Hänninen <[EMAIL PROTECTED]> wrote:
> > Timothy Ball <[EMAIL PROTECTED]> wrote on Thu, 06 Jan 2000:
> > > Is there a way to give vim a single keystroke to at once both save and
> > > send a letter in mutt?
> > On the theoretical level, Mutt can't get any information back from the
> > editor beyond the exit code and the contents of the saved file, so there
> > is no way from the editor to send back information about what action
> > should be done next (unless exit codes are used for this, which might
> Not true.  Mutt could also look at the permission bits of the temp file.
> For example, it could be coded to send the message immediately if the
> sticky bit was set.  Then a macro could be used in the editor to set
> that bit and exit.  For example, for vim:
>    map ,x :r!chmod +t %^M:wq!^M
> Note, I'm just saying that this could be done, not that it should.  I
> don't have a problem with having to explicitly send the message from the
> compose menu.

My oh my... I can just see it now:

   map ,x :r!mutt -remote 
"mark_draft_specified_by_path_approved_for_send_when_associated_editor_session_terminates(%)"^M:wq!^M

Not that I actually know vim so I don't know if the above would work... and
the code base in mutt definately isn't implemented... yet...

mark

P.S. Yes I'm in a funny mood right now.

-- 
[EMAIL PROTECTED][EMAIL PROTECTED][EMAIL PROTECTED] __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/

Reply via email to