Skip to content

Commit 71b6d33

Browse files
committed
Update runtime files
1 parent 2da11a4 commit 71b6d33

26 files changed

+499
-141
lines changed

.github/CODEOWNERS

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ runtime/compiler/perlcritic.vim @petdance @dkearns
6969
runtime/compiler/php.vim @dkearns
7070
runtime/compiler/podchecker.vim @petdance @dkearns
7171
runtime/compiler/powershell.vim @heaths
72+
runtime/compiler/raco.vim @benknoble
73+
runtime/compiler/racomake.vim @benknoble
74+
runtime/compiler/racosetup.vim @benknoble
75+
runtime/compiler/racotest.vim @benknoble
7276
runtime/compiler/rake.vim @tpope @dkearns
7377
runtime/compiler/rhino.vim @dkearns
7478
runtime/compiler/rspec.vim @tpope @dkearns
@@ -111,6 +115,7 @@ runtime/ftplugin/cucumber.vim @tpope
111115
runtime/ftplugin/desktop.vim @e-kwsm
112116
runtime/ftplugin/dosbatch.vim @mrdubya
113117
runtime/ftplugin/eiffel.vim @dkearns
118+
runtime/ftplugin/elixir.vim @mhanberg
114119
runtime/ftplugin/expect.vim @dkearns
115120
runtime/ftplugin/erlang.vim @hcs42
116121
runtime/ftplugin/eruby.vim @tpope @dkearns
@@ -123,8 +128,10 @@ runtime/ftplugin/gdb.vim @xeyownt
123128
runtime/ftplugin/gdscript.vim @habamax
124129
runtime/ftplugin/gdshader.vim @habamax
125130
runtime/ftplugin/git.vim @tpope
131+
runtime/ftplugin/gitattributes.vim @ObserverOfTime
126132
runtime/ftplugin/gitcommit.vim @tpope
127133
runtime/ftplugin/gitconfig.vim @tpope
134+
runtime/ftplugin/gitignore.vim @ObserverOfTime
128135
runtime/ftplugin/gitrebase.vim @tpope
129136
runtime/ftplugin/gitsendemail.vim @tpope
130137
runtime/ftplugin/go.vim @dbarnett
@@ -135,6 +142,7 @@ runtime/ftplugin/html.vim @dkearns
135142
runtime/ftplugin/i3config.vim @hiqua
136143
runtime/ftplugin/icon.vim @dkearns
137144
runtime/ftplugin/indent.vim @dkearns
145+
runtime/ftplugin/j.vim @glts
138146
runtime/ftplugin/javascript.vim @dkearns
139147
runtime/ftplugin/javascriptreact.vim @dkearns
140148
runtime/ftplugin/jsonc.vim @izhakjakov
@@ -143,6 +151,7 @@ runtime/ftplugin/kconfig.vim @chrisbra
143151
runtime/ftplugin/less.vim @genoma
144152
runtime/ftplugin/liquid.vim @tpope
145153
runtime/ftplugin/lua.vim @dkearns
154+
runtime/ftplugin/lynx.vim @dkearns
146155
runtime/ftplugin/m3build.vim @dkearns
147156
runtime/ftplugin/m3quake.vim @dkearns
148157
runtime/ftplugin/markdown.vim @tpope
@@ -164,6 +173,7 @@ runtime/ftplugin/ps1xml.vim @heaths
164173
runtime/ftplugin/python.vim @tpict
165174
runtime/ftplugin/qb64.vim @dkearns
166175
runtime/ftplugin/r.vim @jalvesaq
176+
runtime/ftplugin/racket.vim @benknoble
167177
runtime/ftplugin/rhelp.vim @jalvesaq
168178
runtime/ftplugin/rmd.vim @jalvesaq
169179
runtime/ftplugin/rnoweb.vim @jalvesaq
@@ -175,6 +185,7 @@ runtime/ftplugin/sass.vim @tpope
175185
runtime/ftplugin/scala.vim @derekwyatt
176186
runtime/ftplugin/scss.vim @tpope
177187
runtime/ftplugin/sdoc.vim @gpanders
188+
runtime/ftplugin/sh.vim @dkearns
178189
runtime/ftplugin/solution.vim @dkearns
179190
runtime/ftplugin/spec.vim @ignatenkobrain
180191
runtime/ftplugin/swayconfig.vim @jamespeapen
@@ -219,6 +230,7 @@ runtime/indent/gitolite.vim @sitaramc
219230
runtime/indent/go.vim @dbarnett
220231
runtime/indent/haml.vim @tpope
221232
runtime/indent/idlang.vim @dkearns
233+
runtime/indent/j.vim @glts
222234
runtime/indent/java.vim @xuhdev
223235
runtime/indent/javascript.vim @bounceme
224236
runtime/indent/json.vim @elzr
@@ -240,6 +252,7 @@ runtime/indent/prolog.vim @dkearns
240252
runtime/indent/ps1.vim @heaths
241253
runtime/indent/qb64.vim @dkearns
242254
runtime/indent/r.vim @jalvesaq
255+
runtime/indent/racket.vim @benknoble
243256
runtime/indent/readline.vim @dkearns
244257
runtime/indent/rhelp.vim @jalvesaq
245258
runtime/indent/rmd.vim @jalvesaq
@@ -321,8 +334,10 @@ runtime/syntax/gdresource.vim @habamax
321334
runtime/syntax/gdscript.vim @habamax
322335
runtime/syntax/gdshader.vim @habamax
323336
runtime/syntax/git.vim @tpope
337+
runtime/syntax/gitattributes.vim @ObserverOfTime
324338
runtime/syntax/gitcommit.vim @tpope
325339
runtime/syntax/gitconfig.vim @tpope
340+
runtime/syntax/gitignore.vim @ObserverOfTime
326341
runtime/syntax/gitolite.vim @sitaramc
327342
runtime/syntax/gitrebase.vim @tpope
328343
runtime/syntax/go.vim @bhcleek
@@ -336,6 +351,7 @@ runtime/syntax/html.vim @dkearns
336351
runtime/syntax/i3config.vim @hiqua
337352
runtime/syntax/icon.vim @dkearns
338353
runtime/syntax/indent.vim @dkearns
354+
runtime/syntax/j.vim @glts
339355
runtime/syntax/jargon.vim @h3xx
340356
runtime/syntax/java.vim @fleiner
341357
runtime/syntax/jsonc.vim @izhakjakov
@@ -377,6 +393,7 @@ runtime/syntax/ps1xml.vim @heaths
377393
runtime/syntax/psl.vim @danielkho
378394
runtime/syntax/qb64.vim @dkearns
379395
runtime/syntax/r.vim @jalvesaq
396+
runtime/syntax/racket.vim @benknoble
380397
runtime/syntax/raml.vim @in3d
381398
runtime/syntax/ratpoison.vim @trapd00r
382399
runtime/syntax/rc.vim @chrisbra
@@ -404,7 +421,7 @@ runtime/syntax/sshconfig.vim @Jakuje
404421
runtime/syntax/sshdconfig.vim @Jakuje
405422
runtime/syntax/sudoers.vim @e-kwsm
406423
runtime/syntax/svn.vim @hdima
407-
runtime/syntax/swayconfig.vim @jamespeapen
424+
runtime/syntax/swayconfig.vim @jamespeapen
408425
runtime/syntax/systemverilog.vim @Kocha
409426
runtime/syntax/tags.vim @cecamp
410427
runtime/syntax/tap.vim @petdance

runtime/doc/builtin.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.0. Last change: 2022 Jun 27
1+
*builtin.txt* For Vim version 9.0. Last change: 2022 Sep 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/eval.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.0. Last change: 2022 Jun 17
1+
*eval.txt* For Vim version 9.0. Last change: 2022 Sep 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1718,6 +1718,9 @@ Recommendation: don't do this.
17181718
Notice how execute() is used to execute an Ex command. That's ugly though.
17191719
In Vim9 script you can use a command block, see |inline-function|.
17201720

1721+
Although you can use the loop variable of a `for` command, it must still exist
1722+
when the closure is called, otherwise you get an error. *E1302*
1723+
17211724
Lambda expressions have internal names like '<lambda>42'. If you get an error
17221725
for a lambda expression, you can find what it is with the following command: >
17231726
:function <lambda>42
@@ -3397,7 +3400,8 @@ text...
33973400
it will show for three seconds and avoid a
33983401
|hit-enter| prompt. If you want to hide it before
33993402
that, press Esc in Normal mode (when it would
3400-
otherwise beep).
3403+
otherwise beep). If it disappears too soon you can
3404+
use `:messages` to see the text.
34013405
The message window is available when Vim was compiled
34023406
with the +timer and the +popupwin features.
34033407

runtime/doc/options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.0. Last change: 2022 Jun 27
1+
*options.txt* For Vim version 9.0. Last change: 2022 Sep 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/tags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4332,7 +4332,10 @@ E1295 textprop.txt /*E1295*
43324332
E1296 textprop.txt /*E1296*
43334333
E1297 vim9.txt /*E1297*
43344334
E1298 vim9.txt /*E1298*
4335+
E1299 tagsrch.txt /*E1299*
43354336
E13 message.txt /*E13*
4337+
E1300 userfunc.txt /*E1300*
4338+
E1302 eval.txt /*E1302*
43364339
E131 userfunc.txt /*E131*
43374340
E132 userfunc.txt /*E132*
43384341
E133 userfunc.txt /*E133*

runtime/doc/tagsrch.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -889,13 +889,16 @@ like |CTRL-]|.
889889

890890
The function used for generating the taglist is specified by setting the
891891
'tagfunc' option. The function will be called with three arguments:
892-
a:pattern The tag identifier or pattern used during the tag search.
893-
a:flags String containing flags to control the function behavior.
894-
a:info Dict containing the following entries:
892+
pattern The tag identifier or pattern used during the tag search.
893+
flags String containing flags to control the function behavior.
894+
info Dict containing the following entries:
895895
buf_ffname Full filename which can be used for priority.
896896
user_data Custom data String, if stored in the tag
897897
stack previously by tagfunc.
898898

899+
Note that in a legacy function "a:" needs to be prepended to the argument name
900+
when using it.
901+
899902
Currently up to three flags may be passed to the tag function:
900903
'c' The function was invoked by a normal command being processed
901904
(mnemonic: the tag function may use the context around the
@@ -931,6 +934,8 @@ If the function returns |v:null| instead of a List, a standard tag lookup will
931934
be performed instead.
932935

933936
It is not allowed to change the tagstack from inside 'tagfunc'. *E986*
937+
It is not allowed to close a window or change window from inside 'tagfunc'.
938+
*E1299*
934939

935940
The following is a hypothetical example of a function used for 'tagfunc'. It
936941
uses the output of |taglist()| to generate the result: a list of tags in the

runtime/doc/todo.txt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 9.0. Last change: 2022 Jun 27
1+
*todo.txt* For Vim version 9.0. Last change: 2022 Sep 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,17 +38,14 @@ browser use: https://github.com/vim/vim/issues/1234
3838
*known-bugs*
3939
-------------------- Known bugs and current work -----------------------
4040

41-
When using :echomessage do use msg_row and msg_col, but save and restore.
42-
How to test any failure?
41+
Use :defer command:
42+
- Use "D" flag of writefile() and mkdir() in tests.
43+
(testdir/test_c*.vim done)
4344

44-
Improve :defer command:
45-
- Use "D" flag of writefile() in tests.
46-
- test "defer func()->funcouter()" fails (or use "funcouter")
47-
- test "defer func().arg" fails
48-
- test partial fails
49-
- check arguments at :defer command
50-
- Also when function does "qa!" or "cq"?
45+
When using :echomessage do use msg_row and msg_col, but save and restore.
46+
How to test any failure? If nothing fails perhaps it's OK alrady.
5147

48+
Drop Windows XP? #11089
5249

5350
Further Vim9 improvements, possibly after launch:
5451
- Use Vim9 for more runtime files.
@@ -277,6 +274,7 @@ Adding "10" to 'spellsuggest' causes spell suggestions to become very slow.
277274
Also, z= in German on a long word can take a very long time, but CTRL-C to
278275
interrupt does not work. Where to add ui_breakcheck()?
279276
New English spell files also have very slow suggestions.
277+
French spell files don't work correctly. #4916
280278

281279
Make "g>" and "g<" in Visual mode move the text right or left.
282280
Also for a block selection. #8558
@@ -2648,6 +2646,11 @@ Better 'rightleft' or BIDI support:
26482646

26492647

26502648
Spell checking:
2649+
- List of common misspellings in English:
2650+
https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
2651+
German:
2652+
https://de.wikipedia.org/wiki/Wikipedia:Liste_von_Tippfehlern/F%C3%BCr_Maschinen
2653+
There are other languages.
26512654
- [s does not find missing capital at start of the line. #10838
26522655
Probably because the dot at the end of the previous line isn't seen.
26532656
- When 'cursorline' is set and the first word should have SpellCap

runtime/doc/userfunc.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*userfunc.txt* For Vim version 9.0. Last change: 2022 Jun 17
1+
*userfunc.txt* For Vim version 9.0. Last change: 2022 Sep 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -23,7 +23,7 @@ commands can be executed with the |:normal| command.
2323

2424
The function name must start with an uppercase letter, to avoid confusion with
2525
builtin functions. To prevent from using the same name in different scripts
26-
make them script-local. If you do use a global function the avoid obvious,
26+
make them script-local. If you do use a global function then avoid obvious,
2727
short names. A good habit is to start the function name with the name of the
2828
script, e.g., "HTMLcolor()".
2929

@@ -427,7 +427,8 @@ GetArg()->TheFunc()` does not work, it may work in a later version.
427427

428428
Errors are reported but do not cause aborting execution of deferred functions.
429429

430-
No range is accepted.
430+
No range is accepted. The function can be a partial with extra arguments, but
431+
not with a dictionary. *E1300*
431432

432433
==============================================================================
433434

runtime/doc/version9.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Command line completion in a popup menu ~
7272
Before there was the 'wildmenu' option, which uses the space of one line above
7373
the statusline to show matches. Only a few matches fit there.
7474

75-
Now a popup menu can be used by setting "wildoptions' to "pum". This allows
75+
Now a popup menu can be used by setting 'wildoptions' to "pum". This allows
7676
for showing many more matches. This requires redrawing more of the display,
7777
but since computers are fast enough that is not a problem.
7878

@@ -336,7 +336,7 @@ Hide cursor when sleeping using |:sleep!|.
336336
Add "multispace" to 'listchars' to show two or more spaces no matter where
337337
they appear. Add "leadmultispace" to 'listchars' to show two or more leading
338338
spaces. Add "lead" to 'listchars' to set the character used to show leading
339-
spaces. Support specifying a character using the hexdecimal notation in
339+
spaces. Support specifying a character using the hexadecimal notation in
340340
'listchars' (\x, \u and \U).
341341

342342
Make 'listchars', 'virtualedit' and 'thesaurusfunc' global-local options.
@@ -28248,7 +28248,7 @@ Files: runtime/doc/repeat.txt, src/scriptfile.c, src/vim9script.c,
2824828248
src/proto/vim9script.pro, src/testdir/test_source.vim
2824928249

2825028250
Patch 8.2.4608
28251-
Problem: getcompletion() does not work properly when 'wildoptions
28251+
Problem: getcompletion() does not work properly when 'wildoptions'
2825228252
contains "fuzzy".
2825328253
Solution: Do not use addstar(). (Yegappan Lakshmanan, closes #9992,
2825428254
closes #9986)

runtime/doc/vim9.txt

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*vim9.txt* For Vim version 9.0. Last change: 2022 Jun 25
1+
*vim9.txt* For Vim version 9.0. Last change: 2022 Sep 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1311,7 +1311,7 @@ Make sure to define the breakpoint before compiling the outer function.
13111311
The "inloop" variable will exist only once, all closures put in the list refer
13121312
to the same instance, which in the end will have the value 4. This is
13131313
efficient, also when looping many times. If you do want a separate context
1314-
for each closure call a function to define it: >
1314+
for each closure, call a function to define it: >
13151315
def GetClosure(i: number): func
13161316
var infunc = i
13171317
return () => infunc
@@ -1327,6 +1327,30 @@ for each closure call a function to define it: >
13271327
In some situations, especially when calling a Vim9 closure from legacy
13281328
context, the evaluation will fail. *E1248*
13291329

1330+
Note that at the script level the loop variable will be invalid after the
1331+
loop, also when used in a closure that is called later, e.g. with a timer.
1332+
This will generate error |E1302|: >
1333+
for n in range(4)
1334+
timer_start(500 * n, (_) => {
1335+
echowin n
1336+
})
1337+
endfor
1338+
1339+
You need to create a closure to store the current value of "n", so that it is
1340+
evaluated at the time the closure is created: >
1341+
def GetClosure(nr: number): func
1342+
return (_) => {
1343+
echowindow nr
1344+
}
1345+
enddef
1346+
1347+
for n in range(4)
1348+
timer_start(500 * n, GetClosure(n))
1349+
endfor
1350+
1351+
Using `echowindow` is useful in a timer, the messages go into a popup and will
1352+
not interfere with what the user is doing when it triggers.
1353+
13301354

13311355
Converting a function from legacy to Vim9 ~
13321356
*convert_legacy_function_to_vim9*
@@ -1618,7 +1642,7 @@ type, it can not be used in Vim9 script.
16181642
*E1211* *E1217* *E1218* *E1219* *E1220* *E1221*
16191643
*E1222* *E1223* *E1224* *E1225* *E1226* *E1227*
16201644
*E1228* *E1238* *E1250* *E1251* *E1252* *E1253*
1621-
*E1256* *E1297* *E1298*
1645+
*E1256* *E1297* *E1298* *E1301*
16221646
Types are checked for most builtin functions to make it easier to spot
16231647
mistakes.
16241648

0 commit comments

Comments
 (0)