Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2005 Apr 13 +" Last Change: 2005 May 18 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -822,7 +822,11 @@ fun! s:FTm() endif let n = n + 1 endwhile - setf matlab + if exists("g:filetype_m") + exe "setf " . g:filetype_m + else + setf matlab + endif endfun " Maya Extension Language @@ -1435,8 +1439,14 @@ au BufNewFile,BufRead *.il setf skill au BufNewFile,BufRead .slrnrc setf slrnrc au BufNewFile,BufRead *.score setf slrnsc -" Smalltalk -au BufNewFile,BufRead *.st,*.cls setf st +" Smalltalk (and TeX) +au BufNewFile,BufRead *.st setf st +au BufNewFile,BufRead *.cls + \ if getline(1) =~ '^%' | + \ setf tex | + \ else | + \ setf st | + \ endif " Smarty templates au BufNewFile,BufRead *.tpl setf smarty