1" Vim filetype plugin file 2" Language: MuPAD source files 3" Maintainer: Dave Silvia <dsilvia@mchsi.com> 4" Filenames: *.mu 5" Date: 6/30/2004 6 7if exists("b:did_ftplugin") | finish | endif 8let b:did_ftplugin = 1 9 10" Change the :browse e filter to primarily show MuPAD source files. 11if has("gui_win32") 12 let b:browsefilter= 13 \ "MuPAD source (*.mu)\t*.mu\n" . 14 \ "All Files (*.*)\t*.*\n" 15endif 16 17" matchit.vim not loaded -- don't do anyting below 18if !exists("loaded_matchit") 19 " echomsg "matchit.vim not loaded -- finishing" 20 finish 21endif 22 23" source the AppendMatchGroup function file 24runtime ftplugin/AppendMatchGroup.vim 25 26" fill b:match_words for MuPAD 27call AppendMatchGroup('domain,end_domain') 28call AppendMatchGroup('proc,begin,end_proc') 29call AppendMatchGroup('if,then,elif,else,end_if') 30call AppendMatchGroup('\%(for\|while\|repeat\|case\),of,do,break,next,until,\%(end_for\|end_while\|end_repeat\|end_case\)') 31