blob: aad8d9519fa945378ab089fac63976d9f9314699 [file] [log] [blame]
Bram Moolenaar0dc065e2005-07-04 22:49:24 +00001" Vim filetype plugin file
2" Language: MetaPost
3" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se>
4" Latest Revision: 2005-07-04
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
Bram Moolenaar0dc065e2005-07-04 22:49:24 +00006if exists("b:did_ftplugin")
7 finish
8endif
9let b:did_ftplugin = 1
10
11let b:undo_ftplugin = "setl com< cms< fo<"
12
13setlocal comments=:% commentstring=%\ %s formatoptions-=t formatoptions+=croql
14
15if !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
22endif