On Tuesday 04 June 2002 15:26, Shay Harding <[EMAIL PROTECTED]> wrote:
>
> To get vim to auto-detect the filetype create a file 'filetype.vim'
> inside ~/.vim/ with:
>
> " TT filetype
> if exists("did_load_filetypes")
> finish
> endif
>
> augroup filetypedetect
> au! BufRead,BufNewFile *.tpl setfiletype template
> au! BufRead,BufNewFile *.tt2 setfiletype template
> au! BufRead,BufNewFile *.ttc setfiletype perl
> augroup END
Ah, thanks! I knew it was probably something simple like this. I'll keep this
in mind for later.
Unfortunately, I rarely use raw TT files. The template data is embedded in
another file format which does not use .EXT to determine type as it is Unix
based and we need all 31 chars. It would be nice if I could tell vim what the
file actually looks like, as it's a fairly simple format.
- Cliff