annotate runtime/ftplugin/mp.vim @ 930:529c6a431ff5 v7.0.056

updated for version 7.0-056
author vimboss
date Wed, 16 Aug 2006 15:04:21 +0000
parents 1f3b1021f002
children 82274b284600
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
1 " Vim filetype plugin file
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
2 " Language: MetaPost
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
4 " Latest Revision: 2006-04-19
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
5
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
6 if exists("b:did_ftplugin")
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
7 finish
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
8 endif
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
9 let b:did_ftplugin = 1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
11 let b:undo_ftplugin = "setl com< cms< fo<"
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
12
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
13 setlocal comments=:% commentstring=%\ %s formatoptions-=t formatoptions+=croql
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
14
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
15 if !exists(":FixBeginfigs") != 2
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
16 command -nargs=0 FixBeginfigs call s:fix_beginfigs()
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
17
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
18 function! s:fix_beginfigs()
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
19 let i = 1
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
20 g/^beginfig(\d*);$/s//\='beginfig('.i.');'/ | let i = i + 1
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
21 endfunction
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
22 endif