Russell --
...and then Russell Hoover said...
% On Tue 01/18/00 at 10:00 AM -0500, David T-G <[EMAIL PROTECTED]> wrote:
%
% > 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
Well, great! :-)
% 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.
Yeah. I like edit_headers, but am no having mutt ask me for the To:
address so that I can take advantage of send-hooks.
%
% 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:
Try an autocommand; for more info, go into vim and type
:help auto
and do some browsing. You probably want something like
:au BufRead mutt-* i
or close -- but I haven't tested that AT ALL :-)
%
% (where '_A' is mapped to mutt's original 'm' command):
Why use this? Do you un-set your editor variable elsewhere? You could
just set it once, since all you're doing is picking a cursor position...
%
% # 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.
HTH...
%
% --
% // [EMAIL PROTECTED] //
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millenium" starts at the beginning of 2001. There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
PGP signature