From the shell prompt, you could do this:
vim +9 -c "normal O" -c startinsert
You may want to search for a pattern rather than use a line number in
case the number of header lines ever changes:
vim +/^$ -c "normal O" -c startinsert
Now the tricky part is quoting this correctly for use in a macro. This
worked when I tried it, without the ^M_A:
macro index m ":set editor='vim +9 -c \"normal O\" -c startinsert'^M_A" "compose a new mail message"
HTH,
Gary
--
Gary Johnson | Agilent Technologies
gary...@spk.agilent.com | Spokane, Washington, USA
http://www.spocom.com/users/gjohnson/mutt/ |
Alas! Russell Hoover spake thus:
> How do I put vim's 'O' command into a this macro so that it does what
> I want?
Just set your editor to be '/usr/bin/vi "+O"' and it will automatically
do whatever the O key does when vim launches.
--=20
Rob 'Feztaa' Park
http://members.shaw.ca/feztaa/
--
Your password is pitifully obvious.
--EeQfGwPcQSOJBaQU
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9amD4PTh2iSBKeccRAq6NAJ94X63v9lPSjJJFAkQEHTELd7CumwCdF8gK
Q1ZPi0bYDGwR41dV7fFxYRs=
=CCwn
-----END PGP SIGNATURE-----
--EeQfGwPcQSOJBaQU--