annotate runtime/ftplugin/mp.vim @ 9421:ce8891614a89

Added tag v7.4.1991 for changeset 9f78f3f0c81f8d4d33020ce615f4918dde8e3132
author Christian Brabandt <cb@256bit.org>
date Thu, 07 Jul 2016 14:30:06 +0200
parents f4f8014d516e
children 876fbdd84e52
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>
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1217
diff changeset
4 " Latest Revision: 2008-07-09
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
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1217
diff changeset
11 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1217
diff changeset
12 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1217
diff changeset
13
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
14 let b:undo_ftplugin = "setl com< cms< fo<"
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
15
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
16 setlocal comments=:% commentstring=%\ %s formatoptions-=t formatoptions+=croql
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
17
1217
82274b284600 updated for version 7.1b
vimboss
parents: 839
diff changeset
18 if exists(":FixBeginfigs") != 2
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
19 command -nargs=0 FixBeginfigs call s:fix_beginfigs()
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
20
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
21 function! s:fix_beginfigs()
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
22 let i = 1
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
23 g/^beginfig(\d*);$/s//\='beginfig('.i.');'/ | let i = i + 1
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
24 endfunction
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 7
diff changeset
25 endif
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1217
diff changeset
26
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1217
diff changeset
27 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1217
diff changeset
28 unlet s:cpo_save