[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vim tip-o-rama



On Mon, May 07, 2001 at 12:03:32AM -0500, will trillich wrote:
> aha. BUT the key is, how to get VIM to know when you're editing a
> MUTT file... and set configs accordingly?
> 
> i'm sure there are several ways --
> 
> 	#~/.muttrc
> 	set editor="vim -c tw=64"
> 
> or
> 
> 	#~/.vimrc
> 	augroup mail
> 		au!
> 		autocmd BufRead,BufNewFile .letter,mutt*,nn.*,snd.* set tw=64
> 	augroup END
> 
> tmtowtdi, that's for sure.

[.muttrc]
set editor = "vim -u ~/.vimrc-mutt"

.vimrc-mutt consists of your favorite vim hacks plus mutt/email specific
stuff.  I don't want line wrapping and stuff like that when I'm writing
tcl (a job requirement sadly).

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Ltd.                 | than a perfect plan tomorrow.
mailto:nnorman@micromuse.com   |   -- Patton

Attachment: pgpEtc2UXt5hd.pgp
Description: PGP signature


Reply to: