Skip to content

Commit 10e8ff9

Browse files
committed
Update runtime files
1 parent f578ca2 commit 10e8ff9

29 files changed

+664
-162
lines changed

runtime/doc/autocmd.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 9.0. Last change: 2023 Feb 18
1+
*autocmd.txt* For Vim version 9.0. Last change: 2023 May 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1017,6 +1017,9 @@ OptionSet After setting an option. The pattern is
10171017
the option. Similarly |v:option_oldglobal| is
10181018
only set when |:set| or |:setglobal| was used.
10191019

1020+
This does not set |<abuf>|, you could use
1021+
|bufnr()|.
1022+
10201023
Note that when setting a |global-local| string
10211024
option with |:set|, then |v:option_old| is the
10221025
old global value. However, for all other kinds

runtime/doc/builtin.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.0. Last change: 2023 May 12
1+
*builtin.txt* For Vim version 9.0. Last change: 2023 Jun 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1594,7 +1594,7 @@ clearmatches([{win}]) *clearmatches()*
15941594
Can also be used as a |method|: >
15951595
GetWin()->clearmatches()
15961596
<
1597-
col({expr} [, {winid}) *col()*
1597+
col({expr} [, {winid}]) *col()*
15981598
The result is a Number, which is the byte index of the column
15991599
position given with {expr}. The accepted positions are:
16001600
. the cursor position
@@ -1657,7 +1657,7 @@ complete({startcol}, {matches}) *complete()* *E785*
16571657
Example: >
16581658
inoremap <F5> <C-R>=ListMonths()<CR>
16591659
1660-
func! ListMonths()
1660+
func ListMonths()
16611661
call complete(col('.'), ['January', 'February', 'March',
16621662
\ 'April', 'May', 'June', 'July', 'August', 'September',
16631663
\ 'October', 'November', 'December'])
@@ -1922,7 +1922,7 @@ cursor({list})
19221922
This is like the return value of |getpos()| or |getcurpos()|,
19231923
but without the first item.
19241924

1925-
To position the cursor using the character count, use
1925+
To position the cursor using {col} as the character count, use
19261926
|setcursorcharpos()|.
19271927

19281928
Does not change the jumplist.

runtime/doc/cmdline.txt

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 9.0. Last change: 2023 Feb 08
1+
*cmdline.txt* For Vim version 9.0. Last change: 2023 May 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -962,9 +962,10 @@ Note: these are typed literally, they are not special keys!
962962
write. *E495*
963963
*:<abuf>* *<abuf>*
964964
<abuf> When executing autocommands, is replaced with the currently
965-
effective buffer number (for ":r file" and ":so file" it is
966-
the current buffer, the file being read/sourced is not in a
967-
buffer). *E496*
965+
effective buffer number. It is not set for all events,
966+
also see |bufnr()|. For ":r file" and ":so file" it is the
967+
current buffer, the file being read/sourced is not in a
968+
buffer. *E496*
968969
*:<amatch>* *<amatch>*
969970
<amatch> When executing autocommands, is replaced with the match for
970971
which this autocommand was executed. *E497*

runtime/doc/eval.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.0. Last change: 2023 Apr 24
1+
*eval.txt* For Vim version 9.0. Last change: 2023 Jun 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3091,7 +3091,7 @@ text...
30913091
let mylist = [1, 2, 3]
30923092
lockvar 0 mylist
30933093
let mylist[0] = 77 " OK
3094-
call add(mylist, 4] " OK
3094+
call add(mylist, 4) " OK
30953095
let mylist = [7, 8, 9] " Error!
30963096
< *E743*
30973097
For unlimited depth use [!] and omit [depth].

runtime/doc/map.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 9.0. Last change: 2023 May 12
1+
*map.txt* For Vim version 9.0. Last change: 2023 May 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -400,7 +400,7 @@ Note:
400400
- The command is not echo'ed, no need for <silent>.
401401
- The {rhs} is not subject to abbreviations nor to other mappings, even if the
402402
mapping is recursive.
403-
- In Visual mode you can use `line('v')` and `col('v')` to get one end of the
403+
- In Visual mode you can use `line('v')` and `col('v')` to get one end of the
404404
Visual area, the cursor is at the other end.
405405

406406
*E1255* *E1136*

runtime/doc/message.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*message.txt* For Vim version 9.0. Last change: 2022 Oct 18
1+
*message.txt* For Vim version 9.0. Last change: 2023 May 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/options.txt

+21-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.0. Last change: 2023 May 04
1+
*options.txt* For Vim version 9.0. Last change: 2023 Jun 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1813,7 +1813,7 @@ A jump table for the options with a short description can be found at |Q_op|.
18131813
The screen column can be an absolute number, or a number preceded with
18141814
'+' or '-', which is added to or subtracted from 'textwidth'. >
18151815
1816-
:set cc=+1 " highlight column after 'textwidth'
1816+
:set cc=+1 " highlight column after 'textwidth'
18171817
:set cc=+1,+2,+3 " highlight three columns after 'textwidth'
18181818
:hi ColorColumn ctermbg=lightgrey guibg=lightgrey
18191819
<
@@ -7135,7 +7135,7 @@ A jump table for the options with a short description can be found at |Q_op|.
71357135
local to buffer
71367136
Number of spaces to use for each step of (auto)indent. Used for
71377137
|'cindent'|, |>>|, |<<|, etc.
7138-
When zero the 'ts' value will be used. Use the |shiftwidth()|
7138+
When zero the 'tabstop' value will be used. Use the |shiftwidth()|
71397139
function to get the effective shiftwidth value.
71407140

71417141
*'shortmess'* *'shm'*
@@ -7434,6 +7434,8 @@ A jump table for the options with a short description can be found at |Q_op|.
74347434
line in the window wraps part of it may not be visible, as if it is
74357435
above the window. "<<<" is displayed at the start of the first line,
74367436
highlighted with |hl-NonText|.
7437+
You may also want to add "lastline" to the 'display' option to show as
7438+
much of the last line as possible.
74377439
NOTE: only partly implemented, currently works with CTRL-E, CTRL-Y
74387440
and scrolling with the mouse.
74397441

@@ -8044,13 +8046,25 @@ A jump table for the options with a short description can be found at |Q_op|.
80448046
(or 3 or whatever you prefer) and use 'noexpandtab'. Then Vim
80458047
will use a mix of tabs and spaces, but typing <Tab> and <BS> will
80468048
behave like a tab appears every 4 (or 3) characters.
8047-
2. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use
8049+
This is the recommended way, the file will look the same with other
8050+
tools and when listing it in a terminal.
8051+
2. Set 'softtabstop' and 'shiftwidth' to whatever you prefer and use
8052+
'expandtab'. This way you will always insert spaces. The
8053+
formatting will never be messed up when 'tabstop' is changed (leave
8054+
it at 8 just in case). The file will be a bit larger.
8055+
You do need to check if no Tabs exist in the file. You can get rid
8056+
of them by first setting 'expandtab' and using `%retab!`, making
8057+
sure the value of 'tabstop' is set correctly.
8058+
3. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use
80488059
'expandtab'. This way you will always insert spaces. The
80498060
formatting will never be messed up when 'tabstop' is changed.
8050-
3. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use a
8061+
You do need to check if no Tabs exist in the file, just like in the
8062+
item just above.
8063+
4. Set 'tabstop' and 'shiftwidth' to whatever you prefer and use a
80518064
|modeline| to set these values when editing the file again. Only
8052-
works when using Vim to edit the file.
8053-
4. Always set 'tabstop' and 'shiftwidth' to the same value, and
8065+
works when using Vim to edit the file, other tools assume a tabstop
8066+
is worth 8 spaces.
8067+
5. Always set 'tabstop' and 'shiftwidth' to the same value, and
80548068
'noexpandtab'. This should then work (for initial indents only)
80558069
for any tabstop setting that people use. It might be nice to have
80568070
tabs after the first non-blank inserted as spaces if you do this

runtime/doc/repeat.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 9.0. Last change: 2023 May 01
1+
*repeat.txt* For Vim version 9.0. Last change: 2023 May 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -308,8 +308,8 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
308308
'runtimepath'.
309309

310310
If the filetype detection was not enabled yet (this
311-
is usually done with a "syntax enable" or "filetype
312-
on" command in your .vimrc file), this will also look
311+
is usually done with a `syntax enable` or `filetype on`
312+
command in your .vimrc file), this will also look
313313
for "{name}/ftdetect/*.vim" files.
314314

315315
When the optional ! is added no plugin files or

runtime/doc/spell.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*spell.txt* For Vim version 9.0. Last change: 2023 Apr 21
1+
*spell.txt* For Vim version 9.0. Last change: 2023 May 25
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -122,7 +122,7 @@ zuG Undo |zW| and |zG|, remove the word from the internal
122122
list, like with |zW|.
123123

124124
*:spellra* *:spellrare*
125-
:[count]spellr[are] {word}
125+
:[count]spellra[re] {word}
126126
Add {word} as a rare word to 'spellfile', similar to
127127
|zw|. Without count the first name is used, with
128128
a count of two the second entry, etc.
@@ -135,7 +135,7 @@ zuG Undo |zW| and |zG|, remove the word from the internal
135135
nnoremap z/ :exe ':spellrare! ' .. expand('<cWORD>')<CR>
136136
< |:spellundo|, |zuw|, or |zuW| can be used to undo this.
137137

138-
:spellr[rare]! {word} Add {word} as a rare word to the internal word
138+
:spellra[re]! {word} Add {word} as a rare word to the internal word
139139
list, similar to |zW|.
140140

141141
:[count]spellu[ndo] {word} *:spellu* *:spellundo*

runtime/doc/starting.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 9.0. Last change: 2022 Nov 30
1+
*starting.txt* For Vim version 9.0. Last change: 2023 May 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -792,9 +792,11 @@ accordingly. Vim proceeds in this order:
792792

793793
2. Process the arguments
794794
The options and file names from the command that start Vim are
795-
inspected. Buffers are created for all files (but not loaded yet).
795+
inspected.
796796
The |-V| argument can be used to display or log what happens next,
797797
useful for debugging the initializations.
798+
The |--cmd| arguments are executed.
799+
Buffers are created for all files (but not loaded yet).
798800

799801
3. Execute Ex commands, from environment variables and/or files
800802
An environment variable is read as one Ex command line, where multiple

runtime/doc/tags

+4
Original file line numberDiff line numberDiff line change
@@ -4653,6 +4653,7 @@ E337 gui.txt /*E337*
46534653
E338 editing.txt /*E338*
46544654
E339 message.txt /*E339*
46554655
E34 various.txt /*E34*
4656+
E340 message.txt /*E340*
46564657
E341 message.txt /*E341*
46574658
E342 message.txt /*E342*
46584659
E343 options.txt /*E343*
@@ -8158,6 +8159,7 @@ intel-itanium syntax.txt /*intel-itanium*
81588159
intellimouse-wheel-problems gui_w32.txt /*intellimouse-wheel-problems*
81598160
interactive-functions usr_41.txt /*interactive-functions*
81608161
interfaces-5.2 version5.txt /*interfaces-5.2*
8162+
internal-error message.txt /*internal-error*
81618163
internal-variables eval.txt /*internal-variables*
81628164
internal-wordlist spell.txt /*internal-wordlist*
81638165
internet intro.txt /*internet*
@@ -10883,6 +10885,7 @@ vim9-declaration vim9.txt /*vim9-declaration*
1088310885
vim9-declarations usr_41.txt /*vim9-declarations*
1088410886
vim9-differences vim9.txt /*vim9-differences*
1088510887
vim9-export vim9.txt /*vim9-export*
10888+
vim9-false-true vim9.txt /*vim9-false-true*
1088610889
vim9-final vim9.txt /*vim9-final*
1088710890
vim9-function-defined-later vim9.txt /*vim9-function-defined-later*
1088810891
vim9-gotchas vim9.txt /*vim9-gotchas*
@@ -10900,6 +10903,7 @@ vim9-rationale vim9.txt /*vim9-rationale*
1090010903
vim9-reload vim9.txt /*vim9-reload*
1090110904
vim9-s-namespace vim9.txt /*vim9-s-namespace*
1090210905
vim9-scopes vim9.txt /*vim9-scopes*
10906+
vim9-string-index vim9.txt /*vim9-string-index*
1090310907
vim9-types vim9.txt /*vim9-types*
1090410908
vim9-unpack-ignore vim9.txt /*vim9-unpack-ignore*
1090510909
vim9-user-command vim9.txt /*vim9-user-command*

runtime/doc/terminal.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 9.0. Last change: 2022 Nov 10
1+
*terminal.txt* For Vim version 9.0. Last change: 2023 Jun 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1452,8 +1452,8 @@ If there is no g:termdebug_config you can use: >
14521452
let g:termdebug_map_K = 0
14531453
<
14541454
*termdebug_disasm_window*
1455-
If you want the Asm window shown by default, set the flag to 1.
1456-
the "disasm_window_height" entry can be used to set the window height: >
1455+
If you want the Asm window shown by default, set the "disasm_window" flag to
1456+
1. The "disasm_window_height" entry can be used to set the window height: >
14571457
let g:termdebug_config['disasm_window'] = 1
14581458
let g:termdebug_config['disasm_window_height'] = 15
14591459
If there is no g:termdebug_config you can use: >

runtime/doc/testing.txt

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*testing.txt* For Vim version 9.0. Last change: 2023 May 04
1+
*testing.txt* For Vim version 9.0. Last change: 2023 May 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -166,15 +166,17 @@ test_gui_event({event}, {args})
166166
Set or drag the left, right or horizontal scrollbar. Only
167167
works when the scrollbar actually exists. The supported
168168
items in {args} are:
169-
which: scrollbar. The supported values are:
169+
which: Selects the scrollbar. The supported values
170+
are:
170171
left Left scrollbar of the current window
171172
right Right scrollbar of the current window
172173
hor Horizontal scrollbar
173-
value: amount to scroll. For the vertical scrollbars
174-
the value can be 1 to the line-count of the
175-
buffer. For the horizontal scrollbar the
176-
value can be between 1 and the maximum line
177-
length, assuming 'wrap' is not set.
174+
value: Amount to scroll. For the vertical scrollbars
175+
the value can be between 0 to the line-count
176+
of the buffer minus one. For the horizontal
177+
scrollbar the value can be between 1 and the
178+
maximum line length, assuming 'wrap' is not
179+
set.
178180
dragging: 1 to drag the scrollbar and 0 to click in the
179181
scrollbar.
180182

0 commit comments

Comments
 (0)