diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-07-04 22:49:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-07-04 22:49:24 +0000 |
commit | 0dc065ee7c3bd51e5df3926700e409ae74cdfecf (patch) | |
tree | 3e2f974603cbba12d3f1dcebf493e7ff2bf54d7f /runtime/ftplugin/mp.vim | |
parent | 7d1f5dbc0a254d7524b3f985f2440bf89e037355 (diff) |
updated for version 7.0102v7.0102
Diffstat (limited to 'runtime/ftplugin/mp.vim')
-rw-r--r-- | runtime/ftplugin/mp.vim | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/runtime/ftplugin/mp.vim b/runtime/ftplugin/mp.vim index 3385565b39..aad8d9519f 100644 --- a/runtime/ftplugin/mp.vim +++ b/runtime/ftplugin/mp.vim @@ -1,7 +1,22 @@ -" Vim filetype plugin -" Language: MetaPost -" Maintainer: Dorai Sitaram <ds26@gte.com> -" URL: http://www.ccs.neu.edu/~dorai/vimplugins/vimplugins.html -" Last Change: May 27, 2003 +" Vim filetype plugin file +" Language: MetaPost +" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se> +" Latest Revision: 2005-07-04 -runtime! ftplugin/mf.vim ftplugin/mf_*.vim ftplugin/mf/*.vim +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let b:undo_ftplugin = "setl com< cms< fo<" + +setlocal comments=:% commentstring=%\ %s formatoptions-=t formatoptions+=croql + +if !exists(":FixBeginfigs") != 2 + command -nargs=0 FixBeginfigs call s:fix_beginfigs() + + function! s:fix_beginfigs() + let i = 1 + g/^beginfig(\d*);$/s//\='beginfig('.i.');'/ | let i = i + 1 + endfunction +endif |