389
|
1 " Vim filetype plugin file
|
|
2 " Language: MetaPost
|
839
|
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
|
1698
|
4 " Latest Revision: 2008-07-09
|
389
|
5
|
|
6 if exists("b:did_ftplugin")
|
|
7 finish
|
|
8 endif
|
|
9 let b:did_ftplugin = 1
|
7
|
10
|
1698
|
11 let s:cpo_save = &cpo
|
|
12 set cpo&vim
|
|
13
|
389
|
14 let b:undo_ftplugin = "setl com< cms< fo<"
|
|
15
|
|
16 setlocal comments=:% commentstring=%\ %s formatoptions-=t formatoptions+=croql
|
|
17
|
1217
|
18 if exists(":FixBeginfigs") != 2
|
389
|
19 command -nargs=0 FixBeginfigs call s:fix_beginfigs()
|
|
20
|
|
21 function! s:fix_beginfigs()
|
|
22 let i = 1
|
|
23 g/^beginfig(\d*);$/s//\='beginfig('.i.');'/ | let i = i + 1
|
|
24 endfunction
|
|
25 endif
|
1698
|
26
|
|
27 let &cpo = s:cpo_save
|
|
28 unlet s:cpo_save
|