On Sunday 09 March 2008 07:43:04 am Aristotle Pagaltzis wrote: > I see your bid and raise this: > > autocmd BufRead */templates/tt/* set ft=tt2html > autocmd BufRead */templates/mason/* set ft=mason > > Wheee. >
This is the slightly more effective version: au BufNewFile,BufRead */templates/tt/* setf tt2html au BufNewFile,BufRead */templates/mason/* setf mason Main difference being the BufNewFile handling (which you'll really miss if it's not there). setf is also "more proper" but it probably makes no difference at all in this case :) Andrew _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
