On Mon, Jul 31, 2000 at 11:34:00AM +0200, Johannes Zellner wrote:
> On Fri, Jul 28, 2000 at 04:41:48PM +0200, Kai Weber wrote:
> > Hi,
> >
> > how can I let read some special mail configs (e.g. set tw=72) when edit
> > a email/news messages?
>
> in your ~/.vimrc put something like
>
> autocmd FileType mail set tw=72 nocin ai expandtab
> (this is what I have)
>
> you must have vim >= 5.4 for using the FileType autocmd
> For more info type (in vim)
>
> :help autocmd
> :help FileType
I forgot to tell you that you have to have
:filetype on
(:syntax on)
somewhere in your ~/.vimrc for the FileType autocmd to work.
(syntax on is not necessary but nice)
--
Johannes