On Thu, 10 Aug 2000, Caster wrote:

> > for instance, you could say something like
> >   set editor="vim +/^$"
> 
> Thanks to you :) now I'm using:
> set editor="vim +/^$ +/^$ +nohlsearch"
> It places the cursor in the beginning of the second blank line and turns
> highlighting of search results to off.
> However not everyone is using vim, so such option inside mutt could be
> useful.

Well, now I feel quite dump for not thinking of the very simple thing
with vim, but this should work for all editors (that support +<lineno>):

set editor="vim +\`awk '/^$/ {print i+2; exit} {i++}' %s\` %s"

It is stolen from Roland Rosenfeld's <[EMAIL PROTECTED]> great
muttrcs.

HTH
                                        yours,
                                        peter

-- 
PGP encrypted messages preferred.
http://www.cosy.sbg.ac.at/~ppalfrad/
[please CC me on lists]

Reply via email to