blob: 3709782167a151f69ffbcdad29a7ad2633180cb0 [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>
Bram Moolenaar10c56952007-05-10 18:38:52 +00004" Latest Revision: 2006-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
Bram Moolenaar10c56952007-05-10 18:38:52 +000015if exists(":FixBeginfigs") != 2
Bram Moolenaar0dc065e2005-07-04 22:49:24 +000016 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