2 " for working with GT.M or other MUMPS
3 " save this file as your ~/.vim/filetype.vim
4 " or if you have one already, insert these commands
5 " -- Jim Self <jaself@ucdavis.edu> June 2, 2001
7 "augroup filetypedetect
9 " MUMPS source files for GT.M
10 au! BufRead,BufNewFile *.m setfiletype mumps
12 " saved MUMPS routine set from DTM
13 au! BufRead,BufNewFile *.rsa setfiletype mumps
14 au! BufRead,BufNewFile *.RSA setfiletype mumps
16 " saved MUMPS routine set from MSM, DSM, etc.
17 au! BufRead,BufNewFile *.rou setfiletype mumps
18 au! BufRead,BufNewFile *.ROU setfiletype mumps
20 " saved MUMPS routine set
21 au! BufRead,BufNewFile *.ro setfiletype mumps
23 " Hypertext files with embedded m-tags - uses php syntax roughly
24 au! BufRead,BufNewFile *.ht setfiletype php
29 " for working with GT.M or other MUMPS
30 " save this file as your ~/.vim/scripts.vim
31 " or if you have one already, insert these commands
32 " -- Jim Self <jaself@ucdavis.edu> June 2, 2001
34 if did_filetype() " filetype already set..
35 finish " ..don't do these checks
37 if getline(1) =~ '^%\=\w\+\s\+;' "first line - label and comment
39 elseif getline(1) =~ '^;' "just a comment