On Tue 01/18/00 at 10:00 AM -0500, David T-G <[EMAIL PROTECTED]> wrote:
> Since you reference lines 2/3 you are probably not using edit_headers and
> wouldn't be interested in setting your editor variable to something like
> set editor="vim +/^$"
> to put the cursor at the first blank line. But it might help.
It did help. I decided to start using edit_headers because without them
I always wondered, as I was writing a mail, if I had the correct address on
the 'To:' header-line. I'd have to wait til I got into the compose menu,
after writing the mail, to see it. And sometimes I'd forget to look at it
before sending a mail.
But I'm still not sure how to make a mutt macro to automatically put me
into vim in insert mode. Right now I have this .muttrc macro:
(where '_A' is mapped to mutt's original 'm' command):
# Start cursor at line 8 (with edit_headers set)
# in vim's insert mode when composing new mails ('m'):
macro index m ":set editor='vim +8'^M_A" "compose a new mail message"
macro pager m ":set editor='vim +8'^M_A" "compose a new mail message"
The problem is that almost anything I put after 'vim ... is read as a
filename. Not sure how to get around that, any tips appreciated.
--
// [EMAIL PROTECTED] //