Peter Palfrader wrote:
...
> 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.

Or even better, use the builtin awk variable NR:
        set editor="vim +\`awk '/^$/ {print NR+1; exit}' %s\` %s"

Cheers,
Stan

Reply via email to