Skip to content

Commit 2ecbe53

Browse files
committed
Update runtime files
1 parent 72981ac commit 2ecbe53

35 files changed

+1032
-704
lines changed

CONTRIBUTING.md

-3
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ If the maintainer does not respond, contact the vim-dev maillist.
6565

6666
# Translations
6767

68-
Translations of this CONTRIBUTING file:
69-
[Korean](https://github.com/cjw1359/opensource/blob/master/Vim/CONTRIBUTING_ko.md)
70-
7168
Translating messages and runtime files is very much appreciated! These things
7269
can be translated:
7370
* Messages in Vim, see [src/po/README.txt][1]

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ If you would like to help making Vim better, see the
128128

129129
## Information ##
130130

131+
If you are on macOS, you can use [Macvim](https://macvim-dev.github.io/macvim/).
132+
131133
The latest news about Vim can be found on the Vim home page:
132134
https://www.vim.org/
133135

@@ -150,8 +152,3 @@ Send any other comments, patches, flowers and suggestions to:
150152

151153

152154
This is `README.md` for version 9.0 of Vim: Vi IMproved.
153-
154-
155-
## Translations of this README ##
156-
157-
[Korean](https://github.com/cjw1359/opensource/blob/master/Vim/README_ko.md)

runtime/doc/builtin.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -5775,8 +5775,8 @@ matchadd({group}, {pattern} [, {priority} [, {id} [, {dict}]]])
57755775
message will appear and the match will not be added. An ID
57765776
is specified as a positive integer (zero excluded). IDs 1, 2
57775777
and 3 are reserved for |:match|, |:2match| and |:3match|,
5778-
respectively. 3 is reserved for use by the
5779-
|matchparen|polugin.
5778+
respectively. 3 is reserved for use by the |matchparen|
5779+
plugin.
57805780
If the {id} argument is not specified or -1, |matchadd()|
57815781
automatically chooses a free ID.
57825782

@@ -7387,7 +7387,7 @@ search({pattern} [, {flags} [, {stopline} [, {timeout} [, {skip}]]]])
73877387
< When {stopline} is used and it is not zero this also implies
73887388
that the search does not wrap around the end of the file.
73897389
A zero value is equal to not giving the argument.
7390-
7390+
*E1285* *E1286* *E1287* *E1288* *E1289*
73917391
When the {timeout} argument is given the search stops when
73927392
more than this many milliseconds have passed. Thus when
73937393
{timeout} is 500 the search stops after half a second.

runtime/doc/change.txt

+2
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,8 @@ When the {string} starts with "\=" it is evaluated as an expression, see
802802
|sub-replace-expression|. You can use that for complex replacement or special
803803
characters.
804804

805+
The substitution is limited in recursion to 4 levels. *E1290*
806+
805807
Otherwise these characters in {string} have a special meaning:
806808
*:s%*
807809
When {string} is equal to "%" and '/' is included with the 'cpoptions' option,

runtime/doc/channel.txt

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ The Netbeans interface also uses a channel. |netbeans|
2727
14. Using a prompt buffer |prompt-buffer|
2828
15. Language Server Protocol |language-server-protocol|
2929

30+
*E1277*
3031
{only when compiled with the |+channel| feature for channel stuff}
3132
You can check this with: `has('channel')`
3233
{only when compiled with the |+job| feature for job stuff}

runtime/doc/cmdline.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,8 @@ character that indicates the type of command-line being edited, see
11471147

11481148
Vim will be in Normal mode when the editor is opened, except when 'insertmode'
11491149
is set.
1150+
*E1292*
1151+
Once a command-line window is open it is not possible to open another one.
11501152

11511153
The height of the window is specified with 'cmdwinheight' (or smaller if there
11521154
is no room). The window is always full width and is positioned just above the

runtime/doc/eval.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,7 @@ parenthesis), or any expression in parentheses: >
13991399
base->alist[idx](args)
14001400
base->(getFuncRef())(args)
14011401
Note that in the last call the base is passed to the function resulting from
1402-
"(getFuncRef())", inserted before "args".
1402+
"(getFuncRef())", inserted before "args". *E1275*
14031403

14041404
*E274*
14051405
"->name(" must not contain white space. There can be white space before the
@@ -1559,7 +1559,7 @@ allowing the inclusion of Vim script expressions (see |expr1|). Any
15591559
expression returning a value can be enclosed between curly braces. The value
15601560
is converted to a string. All the text and results of the expressions
15611561
are concatenated to make a new string.
1562-
*E1278*
1562+
*E1278* *E1279*
15631563
To include an opening brace '{' or closing brace '}' in the string content
15641564
double it. For double quoted strings using a backslash also works. A single
15651565
closing brace '}' will result in an error.
@@ -2682,7 +2682,7 @@ See |:verbose-cmd| for more information.
26822682
Define a new function by the name {name}. The body of
26832683
the function follows in the next lines, until the
26842684
matching |:endfunction|.
2685-
2685+
*E1267*
26862686
The name must be made of alphanumeric characters and
26872687
'_', and must start with a capital or "s:" (see
26882688
above). Note that using "b:" or "g:" is not allowed.

runtime/doc/pattern.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ $ At end of pattern or in front of "\|", "\)" or "\n" ('magic' on):
928928
becomes invalid. Vim doesn't automatically update the matches.
929929
Similar to moving the cursor for "\%#" |/\%#|.
930930

931-
*/\%l* */\%>l* */\%<l* *E951* *E1204*
931+
*/\%l* */\%>l* */\%<l* *E951* *E1204* *E1273*
932932
\%23l Matches in a specific line.
933933
\%<23l Matches above a specific line (lower line number).
934934
\%>23l Matches below a specific line (higher line number).

runtime/doc/popup.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ POPUP_CREATE() ARGUMENTS *popup_create-arguments*
591591

592592
The first argument of |popup_create()| (and the second argument to
593593
|popup_settext()|) specifies the text to be displayed, and optionally text
594-
properties. It is in one of four forms:
594+
properties. It is in one of four forms: *E1284*
595595
- a buffer number
596596
- a string
597597
- a list of strings

runtime/doc/spell.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ zuW *zuG* *zuW*
103103
zuG Undo |zW| and |zG|, remove the word from the internal
104104
word list. Count used as with |zg|.
105105

106-
*:spe* *:spellgood*
106+
*:spe* *:spellgood* *E1280*
107107
:[count]spe[llgood] {word}
108108
Add {word} as a good word to 'spellfile', like with
109109
|zg|. Without count the first name is used, with a

runtime/doc/tags

+22
Original file line numberDiff line numberDiff line change
@@ -4068,10 +4068,12 @@ E1079 vim9.txt /*E1079*
40684068
E108 eval.txt /*E108*
40694069
E1080 vim9.txt /*E1080*
40704070
E1081 eval.txt /*E1081*
4071+
E1082 vim9.txt /*E1082*
40714072
E1083 editing.txt /*E1083*
40724073
E1084 eval.txt /*E1084*
40734074
E1085 eval.txt /*E1085*
40744075
E1087 vim9.txt /*E1087*
4076+
E1088 vim9.txt /*E1088*
40754077
E1089 eval.txt /*E1089*
40764078
E109 eval.txt /*E109*
40774079
E1090 eval.txt /*E1090*
@@ -4269,17 +4271,36 @@ E1263 eval.txt /*E1263*
42694271
E1264 vim9.txt /*E1264*
42704272
E1265 eval.txt /*E1265*
42714273
E1266 if_pyth.txt /*E1266*
4274+
E1267 eval.txt /*E1267*
4275+
E1268 vim9.txt /*E1268*
4276+
E1269 vim9.txt /*E1269*
42724277
E127 eval.txt /*E127*
42734278
E1270 change.txt /*E1270*
42744279
E1271 vim9.txt /*E1271*
4280+
E1272 vim9.txt /*E1272*
4281+
E1273 pattern.txt /*E1273*
42754282
E1274 cmdline.txt /*E1274*
4283+
E1275 eval.txt /*E1275*
42764284
E1276 builtin.txt /*E1276*
4285+
E1277 channel.txt /*E1277*
42774286
E1278 eval.txt /*E1278*
4287+
E1279 eval.txt /*E1279*
42784288
E128 eval.txt /*E128*
4289+
E1280 spell.txt /*E1280*
42794290
E1281 pattern.txt /*E1281*
42804291
E1282 eval.txt /*E1282*
42814292
E1283 eval.txt /*E1283*
4293+
E1284 popup.txt /*E1284*
4294+
E1285 builtin.txt /*E1285*
4295+
E1286 builtin.txt /*E1286*
4296+
E1287 builtin.txt /*E1287*
4297+
E1288 builtin.txt /*E1288*
4298+
E1289 builtin.txt /*E1289*
42824299
E129 eval.txt /*E129*
4300+
E1290 change.txt /*E1290*
4301+
E1291 testing.txt /*E1291*
4302+
E1292 cmdline.txt /*E1292*
4303+
E1293 textprop.txt /*E1293*
42834304
E13 message.txt /*E13*
42844305
E131 eval.txt /*E131*
42854306
E132 eval.txt /*E132*
@@ -10694,6 +10715,7 @@ vimscript-versions eval.txt /*vimscript-versions*
1069410715
vimtutor usr_01.txt /*vimtutor*
1069510716
virtcol() builtin.txt /*virtcol()*
1069610717
virtcol2col() builtin.txt /*virtcol2col()*
10718+
virtual-text textprop.txt /*virtual-text*
1069710719
visual-block visual.txt /*visual-block*
1069810720
visual-change visual.txt /*visual-change*
1069910721
visual-examples visual.txt /*visual-examples*

runtime/doc/testing.txt

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ test_gui_event({event}, {args})
186186
keyup generate a keyup event
187187
keydown generate a keydown event
188188
keycode: Keycode to use for a keyup or a keydown event.
189+
*E1291*
189190

190191
"tabline":
191192
Inject a mouse click event on the tabline to select a

runtime/doc/textprop.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ prop_add({lnum}, {col}, {props})
171171
the text.
172172
A negative "id" will be chosen and is returned. Once a
173173
property with "text" has been added for a buffer then using a
174-
negative "id" for any other property will give an error.
174+
negative "id" for any other property will give an error:
175+
*E1293*
175176

176177
Can also be used as a |method|: >
177178
GetLnum()->prop_add(col, props)

runtime/doc/todo.txt

+13-4
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,24 @@ browser use: https://github.com/vim/vim/issues/1234
3939
-------------------- Known bugs and current work -----------------------
4040

4141
PR to consider:
42-
- Fix CTRL-[ for Win32 on Belgian keyboard #10687 (closes #10454)
4342
- stricter parsing for has('patch-x.y.z') #10752
4443
- cmdheight=0 #10675 Does it work properly?
4544
- add splitscroll #10682 Useful? Any trouble? Null Chilly says it's OK.
4645
suggestion: names instead of numbers for the option value
46+
problem depending on whether window is focused or not
4747

48-
Support virtual text:
49-
- clear b_textprop_text when buffer is cleared
48+
Support virtual text: #7553
5049
- Remove and free text when textprop is removed with negative ID.
5150
- "gj" does not work correctly
51+
- no virtual text when 'signcolumn' is set to "yes" #10794
5252
- placement at the end of the line: after the text (text_align: "end"), right
53-
aligned (text_align: "right")
53+
aligned (text_align: "right"); choice: truncate when not enough space or
54+
wrap to next line (text_wrap: "yes"); Also: fill with space to text wraps to
55+
start of next screen line (text_align: "below")
56+
Also consider an empty line, should fix #10786. Also check inserting text.
57+
- win_lbr_chartabsize() TODO item: count screen cells
58+
- wrong cursor position (Yegappan, July 27)
59+
- many tests
5460

5561
Further Vim9 improvements, possibly after launch:
5662
- Use Vim9 for more runtime files.
@@ -238,6 +244,9 @@ entry separately. #6609
238244
Multiplexers (screen, tmux) can request it to the underlying terminal, and
239245
pass it on with modifications.
240246

247+
Using "A" and "o" in manually created fold (in empty buffer) does not behave
248+
consistenly (James McCoy, #10698)
249+
241250
When scheme can't be found by configure there is no clear "not found" message:
242251
configure:5769: checking MzScheme install prefix
243252
configure:5781: result:

runtime/doc/vim9.txt

+10-3
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ start with an upper case letter even when using the "s:" prefix. In legacy
281281
script "s:funcref" could be used, because it could not be referred to with
282282
"funcref". In Vim9 script it can, therefore "s:Funcref" must be used to avoid
283283
that the name interferes with builtin functions.
284-
*vim9-s-namespace*
284+
*vim9-s-namespace* *E1268*
285285
The use of the "s:" prefix is not supported at the Vim9 script level. All
286286
functions and variables without a prefix are script-local.
287287

@@ -857,6 +857,8 @@ No curly braces expansion ~
857857
Command modifiers are not ignored ~
858858
*E1176*
859859
Using a command modifier for a command that does not use it gives an error.
860+
*E1082*
861+
Also, using a command modifier without a following command is now an error.
860862

861863

862864
Dictionary literals ~
@@ -1234,6 +1236,9 @@ variables can be accessed without the "s:" prefix. They must be defined
12341236
before the function is compiled. If the script the function is defined in is
12351237
legacy script, then script-local variables must be accessed with the "s:"
12361238
prefix if they do not exist at the time of compiling.
1239+
*E1269*
1240+
Script-local variables in a |Vim9| script must be declared at the script
1241+
level. They cannot be created in a function, also not in a legacy function.
12371242

12381243
*:defc* *:defcompile*
12391244
:defc[ompile] Compile functions defined in the current script that
@@ -1492,6 +1497,8 @@ value is not actually changed. If you need to change the type, e.g. to change
14921497
it to a string, use the |string()| function. Or use |str2nr()| to convert a
14931498
string to a number.
14941499

1500+
If a type is given where it is not expected you can get *E1272* .
1501+
14951502

14961503
Type inference ~
14971504
*type-inference*
@@ -1696,8 +1703,8 @@ be exported. {not implemented yet: class, interface}
16961703

16971704

16981705
Import ~
1699-
*:import* *:imp* *E1094* *E1047* *E1262*
1700-
*E1048* *E1049* *E1053* *E1071* *E1236*
1706+
*:import* *:imp* *E1094* *E1047* *E1262*
1707+
*E1048* *E1049* *E1053* *E1071* *E1088* *E1236*
17011708
The exported items can be imported in another script. The import syntax has
17021709
two forms. The simple form: >
17031710
import {filename}

0 commit comments

Comments
 (0)