On Sun, May 06, 2001 at 01:58:40AM -0700, der.hans wrote: > Am 05. May, 2001 schw?zte Nathan Saper so: > > > autocmd BufRead,BufNewFile > > mutt*[0-9],snd.*,.letter,.followup,.article,.article[0-9],pico* set > > textwidth=76 > > OK, what's this do? When a buffer or new file is opened that matches a > filename as listed by any of the patterns in that comma-delimited list it > will automagically set the textwidth to 76? Exactly. Autocommands are one of my favorite features of VIM. I have autocommands for TeX files, emails, HTML pages, and most everything else. -- [ Nathan Saper (natedog@well.com) http://www.well.com/user/natedog/ ] [ GPG: 0x6D7A0DA0 ADB6 C720 B46B AE39 93BD E598 897E D87D 6D7A 0DA0 ] [ PGP: 0x386C4B91 E6 65 BB E2 31 08 36 BF 0C 87 91 B8 26 AE 5E 5A ]