annotate runtime/ftplugin/nsis.vim @ 14642:96858d612aff v8.1.0334

patch 8.1.0334: 'autowrite' takes effect when buffer is not to be written commit https://github.com/vim/vim/commit/8c9e7b00f6566dc41e794ef11c93d93b034c7134 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 30 13:07:17 2018 +0200 patch 8.1.0334: 'autowrite' takes effect when buffer is not to be written Problem: 'autowrite' takes effect when buffer is not to be written. Solution: Don't write buffers that are not supposed to be written. (Even Q Jones, closes #3391) Add tests for 'autowrite'.
author Christian Brabandt <cb@256bit.org>
date Thu, 30 Aug 2018 13:15:06 +0200
parents 371ceeebbdaa
children ebedba7a4898
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
1 " Vim ftplugin file
13125
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
2 " Language: NSIS script
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
3 " Maintainer: Ken Takata
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
4 " URL: https://github.com/k-takata/vim-nsis
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
5 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
6 " Last Change: 2018-01-26
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
7
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
8 if exists("b:did_ftplugin")
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
9 finish
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
10 endif
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
11
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
12 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
13 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
14
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
15 let b:did_ftplugin = 1
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
16
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
17 let b:undo_ftplugin = "setl com< cms< fo< def< inc<"
13125
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
18 \ " | unlet! b:match_ignorecase b:match_words"
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
19
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
20 setlocal comments=s1:/*,mb:*,ex:*/,b:#,:; commentstring=;\ %s
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
21 setlocal formatoptions-=t formatoptions+=croql
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
22 setlocal define=^\\s*!define\\%(\\%(utc\\)\\=date\\|math\\)\\=
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
23 setlocal include=^\\s*!include\\%(/NONFATAL\\)\\=
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
24
13125
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
25 if exists("loaded_matchit")
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
26 let b:match_ignorecase = 1
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
27 let b:match_words =
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
28 \ '\${\%(If\|IfNot\|Unless\)}:\${\%(Else\|ElseIf\|ElseIfNot\|ElseUnless\)}:\${\%(EndIf\|EndUnless\)},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
29 \ '\${Select}:\${EndSelect},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
30 \ '\${Switch}:\${EndSwitch},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
31 \ '\${\%(Do\|DoWhile\|DoUntil\)}:\${\%(Loop\|LoopWhile\|LoopUntil\)},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
32 \ '\${\%(For\|ForEach\)}:\${Next},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
33 \ '\<Function\>:\<FunctionEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
34 \ '\<Section\>:\<SectionEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
35 \ '\<SectionGroup\>:\<SectionGroupEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
36 \ '\<PageEx\>:\<PageExEnd\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
37 \ '\${MementoSection}:\${MementoSectionEnd},' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
38 \ '!if\%(\%(macro\)\?n\?def\)\?\>:!else\>:!endif\>,' .
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
39 \ '!macro\>:!macroend\>'
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
40 endif
371ceeebbdaa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11062
diff changeset
41
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
42 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
43 unlet s:cpo_save