annotate runtime/ftplugin/dosbatch.vim @ 32250:b1ea62e14b3c v9.0.1456

patch 9.0.1456: shortmess test depends on order of test execution Commit: https://github.com/vim/vim/commit/657b31fa3bda2089fef18c30fc706abe5d57e865 Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Apr 15 21:28:02 2023 +0100 patch 9.0.1456: shortmess test depends on order of test execution Problem: Shortmess test depends on order of test execution. Solution: Clear messages. (closes https://github.com/vim/vim/issues/12264)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Apr 2023 22:30:03 +0200
parents a9b5ffbc0428
children 8ae680be2a51
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
32004
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
2 " Language: MS-DOS/Windows .bat files
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
3 " Maintainer: Mike Williams <mrmrdubya@gmail.com>
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
4 " Last Change: 12th February 2023
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
5 "
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
6 " Options Flags:
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
7 " dosbatch_colons_comment - any value to treat :: as comment line
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
17 let s:cpo_save = &cpo
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
18 set cpo&vim
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
19
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " BAT comment formatting
32004
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
21 setlocal comments=b:rem,b:@rem,b:REM,b:@REM
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
22 if exists("dosbatch_colons_comment")
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
23 setlocal comments+=:::
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
24 setlocal commentstring=::\ %s
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
25 else
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
26 setlocal commentstring=REM\ %s
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 20317
diff changeset
27 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 setlocal formatoptions-=t formatoptions+=rol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
20317
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
30 " Lookup DOS keywords using Windows command help.
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
31 if executable('help.exe')
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
32 if has('terminal')
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
33 setlocal keywordprg=:term\ help.exe
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
34 else
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
35 setlocal keywordprg=help.exe
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
36 endif
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
37 endif
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
38
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " Define patterns for the browse file filter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 if has("gui_win32") && !exists("b:browsefilter")
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 15
diff changeset
41 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
42 endif
3492
3482d151136b Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
43
20317
2334bf788e8a Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16380
diff changeset
44 let b:undo_ftplugin = "setlocal comments< formatoptions< keywordprg<"
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
45 \ . "| unlet! b:browsefiler"
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
46
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
47 let &cpo = s:cpo_save
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3493
diff changeset
48 unlet s:cpo_save