1 if exists("did_load_filetypes")
6 au BufRead,BufNewFile *.JS setf javascript
7 au BufRead,BufNewFile *.jas setf asm
8 au BufRead,BufNewFile *.swfml setf xml
9 au BufRead,BufNewFile *.hx setf haxe
11 au BufRead,BufNewFile *.tpl setf xhtml
12 au BufRead,BufNewFile *.blk setf c
14 au BufRead,BufNewFile massif.*.txt setf massif
16 " HTML (.shtml and .stm for server side)
17 au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call s:FThtml()
19 au BufNewFile,BufRead {mad,}mutt{ng,}-*-\w\+ setf mail
21 au BufNewFile,BufRead */X11/xkb/* setf xkb
23 au BufNewFile,BufRead *.as setf actionscript
25 au BufNewFile,BufRead *.dox setf doxygen
27 au BufNewFile,BufRead *.iop setf d
29 au BufNewFile,BufRead .gitsendemail.* setf gitsendemail
31 " Distinguish between HTML, XHTML and Django
34 while n < 10 && n < line("$")
39 if getline(n) =~ '\<DTD\s\+XHTML\s'
43 if getline(n) =~ '{%\s*\(extends\|block\)\>'