blob: 1d709ea7546e3126351bd0b9609a4ae57119500b [file] [log] [blame]
Bram Moolenaar0dc065e2005-07-04 22:49:24 +00001" Vim filetype plugin file
2" Language: MetaPost
Bram Moolenaar57657d82006-04-21 22:12:41 +00003" Maintainer: Nikolai Weibull <now@bitwi.se>
4" Latest Revision: 2006-04-19
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