]> Tony Duckles's Git Repositories (git.nynim.org) - dotfiles.git/blob - .vim/ftdetect/mumps.vim
.vimrc: Enable swap files; scrolloff and sidescroll; comment clean-up
[dotfiles.git] / .vim / ftdetect / mumps.vim
1 " ~/.vim/filetype.vim
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
6
7 "augroup filetypedetect
8
9 " MUMPS source files for GT.M
10 au! BufRead,BufNewFile *.m setfiletype mumps
11
12 " saved MUMPS routine set from DTM
13 au! BufRead,BufNewFile *.rsa setfiletype mumps
14 au! BufRead,BufNewFile *.RSA setfiletype mumps
15
16 " saved MUMPS routine set from MSM, DSM, etc.
17 au! BufRead,BufNewFile *.rou setfiletype mumps
18 au! BufRead,BufNewFile *.ROU setfiletype mumps
19
20 " saved MUMPS routine set
21 au! BufRead,BufNewFile *.ro setfiletype mumps
22
23 " Hypertext files with embedded m-tags - uses php syntax roughly
24 au! BufRead,BufNewFile *.ht setfiletype php
25
26 "augroup END
27
28 " ~/.vim/scripts.vim
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
33
34 if did_filetype() " filetype already set..
35 finish " ..don't do these checks
36 endif
37 if getline(1) =~ '^%\=\w\+\s\+;' "first line - label and comment
38 setfiletype mumps
39 elseif getline(1) =~ '^;' "just a comment
40 setfiletype mumps
41 endif
42