I'd like to use this setting, too, but right now I have:

set editor="vim -c 'set tw=72 et'"

Can I incorporate this into it??

set editor="vim -c ':0;/^$'"

On Sat, Mar 24, 2001 at 02:31:29AM -0600, Timothy Legant muttered:
| On Sat, Mar 24, 2001 at 09:59:45AM +0200, Peter Pentchev wrote:
| > On Sat, Mar 24, 2001 at 07:35:12AM +0000, Viktor Lakics wrote:
| > > Hi All,
| > > 
| > > I have an autocommand for temporary mutt files. I want to move the
| > > cursor down 6 positions automatically when I start a new mail (this
| > > would move the cursor right under the headers (i use edit headers).  > But i 
|can't seem to figure out how to do this from a vimrc file...
| > 
| > You could try setting the mutt 'editor' variable to something like
| > 
| >     /usr/local/bin/vim +6j
| > 
| > This shall affect editing old messages, too, but it will probably
| > do what you want.
| 
| You might not always want to move down 6 lines. Perhaps in the future
| you will add a new header (using my_hdr) to certain messages. You might
| want to consider the following instead:
| 
| set editor="vim -c ':0;/^$'"
| 
| which will search for and move to the first blank line. In an email
| message that should be the first line after all the headers, no matter
| how many header lines there are.
| 
| Tim

-- 
/Jason G Helfman

"At any given moment, you may find the ticket to the circus that has always
been in your possession."

        Fingerprint: 6A32 3774 E390 33B5 8C96  2AA1 2BF4 BD71 35A1 C149
            GnuPG http://www.gnupg.org  Get Private!  1024D/35A1C149

Reply via email to