annotate runtime/ftplugin/mp.vim @ 7439:63a96fadf679 v7.4.1023

commit https://github.com/vim/vim/commit/2c15f6aa8fd057721e35d03523577b41cf7aaad5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 2 15:00:30 2016 +0100 patch 7.4.1023 Problem: The distribution files for MS-Windows use CR-LF, which is inconsistent with what one gets from github. Solution: Use LF in the distribution files.
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Jan 2016 15:15: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