annotate runtime/ftplugin/dosbatch.vim @ 7350:5ac8ee7bf4ff v7.4.980

commit https://github.com/vim/vim/commit/57d7971b5f1621071176eea81cdb0d1fc50c925d Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 28 14:04:47 2015 +0100 patch 7.4.980 Problem: Tests for :cdo, :ldo, etc. are outdated. Solution: Add new style tests for these commands. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Mon, 28 Dec 2015 14:15:04 +0100
parents 1b584a6f446c
children 5ad204d8a2f2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: MS-DOS .bat files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Mike Williams <mrw@eandem.co.uk>
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
4 " Last Change: 8th May 2012
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
14 let s:cpo_save = &cpo
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
15 set cpo&vim
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
16
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " BAT comment formatting
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 15
diff changeset
18 setlocal comments=b:rem,b:@rem,b:REM,b:@REM,:::
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 setlocal formatoptions-=t formatoptions+=rol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Define patterns for the browse file filter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 if has("gui_win32") && !exists("b:browsefilter")
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 15
diff changeset
23 let b:browsefilter = "DOS Batch Files (*.bat, *.cmd)\t*.bat;*.cmd\nAll Files (*.*)\t*.*\n"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 endif
3492
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
25
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
26 let b:undo_ftplugin = "setlocal comments< formatoptions<"
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
27 \ . "| unlet! b:browsefiler"
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
28
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
29 let &cpo = s:cpo_save
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
30 unlet s:cpo_save