Michael Elkins said: > Hi Eric, > > On Thu, Aug 19, 2010 at 06:06:39PM +0200, Eric Smith wrote: > >This and some other permutations don't work for me: > >macro compose J ':set editor="vim" :edit-message<enter>' > > > >What is the correct way to set the editor and go back to editing in > >one go? > > macro compose J '<enter-command>set editor=vim<enter><edit-message>'
Thanks Michael. I think the <enter-command> did it for me, its more than just a colon. After many years of exclusive vimming, I use nano for all prose that I type, so the following is a very useful addition to my config and re-sourcing to the defaults in .muttrc at the end is also cool. macro compose v '<enter-command>set editor="~/bin/mutt_edit_vim"<enter><edit-message>:source ~/.muttrc<enter>' macro compose n '<enter-command>set editor="~/bin/mutt_edit_nano"<enter><edit-message>:source ~/.muttrc<enter>' ciao Eric PS Kudos to vim for introducing serialised undo tree - totally cool.