On 08/29/02 12:16 -0400, darren chamberlain wrote:
 
> > 3) [this is a vim question; don't shoot me :)]  I've seen mutts start up
> > vim as their editor like "vim -c ':0;/^$'" which I understand puts the
> > cursor on the first empty line.  Any way to place it at the end of the
> > file (eg, last line)?
> 
> set editor="vim +$" works for me, although that feels not right.
> 

I start vim thusly:
set editor ="vim +/^$ +'set nobackup' -c 'normal o' -c startinsert" This
puts me at a new line below the first non blank line, in insert mode.
If you like, simply change 'normal o' to 'normal i' to omit the
additional blank line.  I use the blank line to make it easier when I
need to reformat the first paragraph.  That way, the headers don't get
mangled when I execute gqip.  The use of 'set nobackup' above is
obvious.  

Also, while we're talking editors, I use:

set tmpdir=~/tmp

to ensure privacy of my temp files.  Otherwise, they get written to
/tmp, which is world readable.

And,welcome to Mutt, krjw :)

John

Reply via email to