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