annotate runtime/ftplugin/mp.vim @ 8277:fa1e3fa56104 v7.4.1431

commit https://github.com/vim/vim/commit/9e24f0c5c1b1097295d0619d95da66e6b2d83ac9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 27 17:22:27 2016 +0100 patch 7.4.1431 Problem: Including header files twice. Solution: Remove the extra includes.
author Christian Brabandt <cb@256bit.org>
date Sat, 27 Feb 2016 17:30:04 +0100
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