comparison runtime/filetype.vim @ 271:8d34af900bae v7.0072

updated for version 7.0072
author vimboss
date Wed, 18 May 2005 22:24:46 +0000
parents 73354c21f1e4
children a7e59720a155
comparison
equal deleted inserted replaced
270:a20218704019 271:8d34af900bae
1 " Vim support file to detect file types 1 " Vim support file to detect file types
2 " 2 "
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2005 Apr 13 4 " Last Change: 2005 May 18
5 5
6 " Listen very carefully, I will say this only once 6 " Listen very carefully, I will say this only once
7 if exists("did_load_filetypes") 7 if exists("did_load_filetypes")
8 finish 8 finish
9 endif 9 endif
820 setf mma 820 setf mma
821 return 821 return
822 endif 822 endif
823 let n = n + 1 823 let n = n + 1
824 endwhile 824 endwhile
825 setf matlab 825 if exists("g:filetype_m")
826 exe "setf " . g:filetype_m
827 else
828 setf matlab
829 endif
826 endfun 830 endfun
827 831
828 " Maya Extension Language 832 " Maya Extension Language
829 au BufNewFile,BufRead *.mel setf mel 833 au BufNewFile,BufRead *.mel setf mel
830 834
1433 1437
1434 " SLRN 1438 " SLRN
1435 au BufNewFile,BufRead .slrnrc setf slrnrc 1439 au BufNewFile,BufRead .slrnrc setf slrnrc
1436 au BufNewFile,BufRead *.score setf slrnsc 1440 au BufNewFile,BufRead *.score setf slrnsc
1437 1441
1438 " Smalltalk 1442 " Smalltalk (and TeX)
1439 au BufNewFile,BufRead *.st,*.cls setf st 1443 au BufNewFile,BufRead *.st setf st
1444 au BufNewFile,BufRead *.cls
1445 \ if getline(1) =~ '^%' |
1446 \ setf tex |
1447 \ else |
1448 \ setf st |
1449 \ endif
1440 1450
1441 " Smarty templates 1451 " Smarty templates
1442 au BufNewFile,BufRead *.tpl setf smarty 1452 au BufNewFile,BufRead *.tpl setf smarty
1443 1453
1444 " SMIL or XML 1454 " SMIL or XML