On Fri, Jul 12, 2002 at 09:27:18PM -0700, Will Yardley wrote: | Dave Goodrich wrote: | > On Wed, Jul 10, 2002 at 04:08:23PM -0400, John P Verel wrote: | | >> Be sure you've got your editor set up correctly. I use vim as my | >> editor. In my .vimrc, I've got textwidth=72, which makes all come out | | > I use VIM for everything including code, so I don't like my editor to wrap | > by default. I added this to my .muttrc and it works perfectly. | > | > set editor="vim -u $HOME/.vimrc -c ':set textwidth=74 wrapmargin=4'" | > | > You can actually set many mutt specific options to your VIM this way. | | with some versions of vim, you can also do something like: | | :au VimEnter mutt-* set tw=72 wrap nosmartindent | :au VimEnter mutt-* syntax on | | (this will apply the options to filenames starting with mutt-)
Even better, IMO :
augroup Mail
au!
au FileType mail set tw=70 fo=tcrq2 nomodeline
au FileType mail set comments+=n:\|,n:%,n:\:
" clear the old sig and go back to the beginning of the buffer
au BufRead /tmp/mutt* normal :g/^| -- $/,/^$/-1d
gg
augroup END
Put all the vim options in your .vimrc, and only apply them for files
of type "mail". You can set different options for different
filetypes, eg "c" vs."sh" vs "python" vs. "make" , so you can use vim for
everything but not make every file type the same (eg don't expand tabs
makefiles).
-D
--
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.
Albert Einstein
http://dman.ddts.net/~dman/
msg29599/pgp00000.pgp
Description: PGP signature
