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]
- not quoting signatures on reply Leonid Mamtchenkov
- Re: not quoting signatures on reply Ronny Haryanto
- Re: not quoting signatures on reply David T-G
- Re: not quoting signatures on reply Caster
- Re: not quoting signatures on reply David T-G
- Re: not quoting signatures on reply Caster
- Re: not quoting signatures on reply Peter Palfrader
- Re: not quoting signatures on rep... Stan Ryckman
- Re: not quoting signatures on rep... Caster
- Re: not quoting signatures on... iain truskett
- Re: not quoting signature... Caster
- Re: not quoting signature... iain truskett
- Re: not quoting signature... Caster
- Re: not quoting signature... Christian Schult
- Re: not quoting signatures on reply Michael Tatge
- Re: not quoting signatures on rep... Marius Gedminas
- Re: not quoting signatures on rep... Caster
