Skip to content

Commit 938ae28

Browse files
committed
Update runtime files.
1 parent 6b066c6 commit 938ae28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+635
-237
lines changed

runtime/doc/autocmd.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 9.0. Last change: 2022 Dec 12
1+
*autocmd.txt* For Vim version 9.0. Last change: 2023 Feb 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -64,7 +64,7 @@ Example in Vim9 script: >
6464
In legacy script: >
6565
call autocmd_add(#{replace: v:true,
6666
\ group: 'DemoGroup',
67-
\ event: 'BufEnter',
67+
\ event: 'BufEnter',
6868
\ pattern: '*.txt',
6969
\ cmd: 'call DemoBufEnter()'
7070
\ })
@@ -398,7 +398,7 @@ Name triggered by ~
398398
|InsertEnter| starting Insert mode
399399
|InsertChange| when typing <Insert> while in Insert or Replace mode
400400
|InsertLeave| when leaving Insert mode
401-
|InsertLeavePre| just before leaving Insert mode
401+
|InsertLeavePre| just before leaving Insert mode
402402
|InsertCharPre| when a character was typed in Insert mode, before
403403
inserting it
404404

@@ -611,9 +611,11 @@ CmdlineEnter After moving the cursor to the command line,
611611
where the user can type a command or search
612612
string; including non-interactive use of ":"
613613
in a mapping, but not when using |<Cmd>|.
614+
The pattern is matched against the character
615+
representing the type of command-line.
616+
|cmdwin-char|
614617
<afile> is set to a single character,
615618
indicating the type of command-line.
616-
|cmdwin-char|
617619
*CmdlineLeave*
618620
CmdlineLeave Before leaving the command line; including
619621
non-interactive use of ":" in a mapping, but

runtime/doc/builtin.txt

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.0. Last change: 2023 Jan 17
1+
*builtin.txt* For Vim version 9.0. Last change: 2023 Feb 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -266,7 +266,7 @@ gettabwinvar({tabnr}, {winnr}, {name} [, {def}])
266266
gettagstack([{nr}]) Dict get the tag stack of window {nr}
267267
gettext({text}) String lookup translation of {text}
268268
getwininfo([{winid}]) List list of info about each window
269-
getwinpos([{timeout}]) List X and Y coord in pixels of the Vim window
269+
getwinpos([{timeout}]) List X and Y coord in pixels of Vim window
270270
getwinposx() Number X coord in pixels of the Vim window
271271
getwinposy() Number Y coord in pixels of the Vim window
272272
getwinvar({nr}, {varname} [, {def}])
@@ -382,7 +382,7 @@ matchstrpos({expr}, {pat} [, {start} [, {count}]])
382382
max({expr}) Number maximum value of items in {expr}
383383
menu_info({name} [, {mode}]) Dict get menu item information
384384
min({expr}) Number minimum value of items in {expr}
385-
mkdir({name} [, {path} [, {prot}]])
385+
mkdir({name} [, {flags} [, {prot}]])
386386
Number create directory {name}
387387
mode([expr]) String current editing mode
388388
mzeval({expr}) any evaluate |MzScheme| expression
@@ -6261,17 +6261,20 @@ min({expr}) Return the minimum value of all items in {expr}. Example: >
62616261
mylist->min()
62626262
62636263
< *mkdir()* *E739*
6264-
mkdir({name} [, {path} [, {prot}]])
6264+
mkdir({name} [, {flags} [, {prot}]])
62656265
Create directory {name}.
62666266

6267-
If {path} contains "p" then intermediate directories are
6268-
created as necessary. Otherwise it must be "".
6267+
When {flags} is present it must be a string. An empty string
6268+
has no effect.
62696269

6270-
If {path} contains "D" then {name} is deleted at the end of
6270+
If {flags} contains "p" then intermediate directories are
6271+
created as necessary.
6272+
6273+
If {flags} contains "D" then {name} is deleted at the end of
62716274
the current function, as with: >
62726275
defer delete({name}, 'd')
62736276
<
6274-
If {path} contains "R" then {name} is deleted recursively at
6277+
If {flags} contains "R" then {name} is deleted recursively at
62756278
the end of the current function, as with: >
62766279
defer delete({name}, 'rf')
62776280
< Note that when {name} has more than one part and "p" is used
@@ -7958,7 +7961,7 @@ setcellwidths({list}) *setcellwidths()*
79587961
terminal, counted in screen cells. The values override
79597962
'ambiwidth'. Example: >
79607963
call setcellwidths([
7961-
\ [0x111, 0x111, 1],
7964+
\ [0x111, 0x111, 1],
79627965
\ [0x2194, 0x2199, 2],
79637966
\ ])
79647967
@@ -7972,7 +7975,7 @@ setcellwidths({list}) *setcellwidths()*
79727975
{width} must be either 1 or 2, indicating the character width
79737976
in screen cells. *E1112*
79747977
An error is given if the argument is invalid, also when a
7975-
range overlaps with another. *E1113*
7978+
range overlaps with another. *E1113*
79767979

79777980
If the new value causes 'fillchars' or 'listchars' to become
79787981
invalid it is rejected and an error is given.
@@ -10551,7 +10554,7 @@ writefile({object}, {fname} [, {flags}])
1055110554
<
1055210555
'D' Delete the file when the current function ends. This
1055310556
works like: >
10554-
:defer delete({fname})
10557+
:defer delete({fname})
1055510558
< Fails when not in a function. Also see |:defer|.
1055610559

1055710560
's' fsync() is called after writing the file. This flushes

runtime/doc/change.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,9 +1842,9 @@ editing text paragraphs. A few hints on how to use this:
18421842

18431843
- Set 'formatoptions' to "aw2tq" to make text with indents like this:
18441844

1845-
bla bla foobar bla
1845+
bla bla foobar bla
18461846
bla foobar bla foobar bla
1847-
bla bla foobar bla
1847+
bla bla foobar bla
18481848
bla foobar bla bla foobar
18491849

18501850
- Add the 'c' flag to only auto-format comments. Useful in source code.

runtime/doc/cmdline.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 9.0. Last change: 2022 Nov 11
1+
*cmdline.txt* For Vim version 9.0. Last change: 2023 Feb 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -617,6 +617,7 @@ followed by another Vim command:
617617
:read !
618618
:scscope
619619
:sign
620+
:tabdo
620621
:tcl
621622
:tcldo
622623
:tclfile

runtime/doc/diff.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ possible to view the changes you have made to a buffer since the file was
181181
loaded. Since Vim doesn't allow having two buffers for the same file, you
182182
need another buffer. This command is useful: >
183183
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
184-
\ | diffthis | wincmd p | diffthis
184+
\ | diffthis | wincmd p | diffthis
185185
(this is in |defaults.vim|). Use ":DiffOrig" to see the differences between
186186
the current buffer and the file it was loaded from.
187187

runtime/doc/eval.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ Note that the dot is also used for String concatenation. To avoid confusion
13721372
always put spaces around the dot for String concatenation.
13731373

13741374

1375-
expr10(expr1, ...) |Funcref| function call *E1085*
1375+
expr10(expr1, ...) |Funcref| function call *E1085*
13761376

13771377
When expr10 is a |Funcref| type variable, invoke the function it refers to.
13781378

@@ -1654,7 +1654,7 @@ See below |functions|.
16541654

16551655
lambda expression *expr-lambda* *lambda*
16561656
-----------------
1657-
{args -> expr1} legacy lambda expression *E451*
1657+
{args -> expr1} legacy lambda expression *E451*
16581658
(args) => expr1 |Vim9| lambda expression
16591659

16601660
A lambda expression creates a new unnamed function which returns the result of

runtime/doc/filetype.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 9.0. Last change: 2022 Apr 09
1+
*filetype.txt* For Vim version 9.0. Last change: 2023 Feb 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -679,7 +679,10 @@ MARKDOWN *ft-markdown-plugin*
679679

680680
To enable folding use this: >
681681
let g:markdown_folding = 1
682-
<
682+
683+
'expandtab' will be set by default. If you do not want that use this: >
684+
let g:markdown_recommended_style = 0
685+
683686
684687
PDF *ft-pdf-plugin*
685688

runtime/doc/gui.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ terminal version.
9595

9696
Recommended place for your personal GUI initializations:
9797
Unix $HOME/.gvimrc or $HOME/.vim/gvimrc
98-
Win32 $HOME/_gvimrc, $HOME/vimfiles/gvimrc
98+
Win32 $HOME/_gvimrc, $HOME/vimfiles/gvimrc
9999
or $VIM/_gvimrc
100100
Amiga s:.gvimrc, home:.gvimrc, home:vimfiles:gvimrc
101101
or $VIM/.gvimrc
102-
Haiku $HOME/config/settings/vim/gvimrc
102+
Haiku $HOME/config/settings/vim/gvimrc
103103

104104
The personal initialization files are searched in the order specified above
105105
and only the first one that is found is read.
@@ -1181,7 +1181,7 @@ When 'guifont' is set and a valid font is found in it and 'guifontwide' is
11811181
empty Vim will attempt to find a matching double-width font and set
11821182
'guifontwide' to it.
11831183

1184-
GTK+ GUI only: *guifontwide_gtk*
1184+
GTK+ GUI only: *guifontwide_gtk*
11851185

11861186
If set and valid, 'guifontwide' is always used for double width characters,
11871187
even if 'encoding' is not set to "utf-8".

runtime/doc/gui_w32.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Vim's Win32 Graphical User Interface *gui-w32* *win32-gui*
1717

1818
Other relevant documentation:
1919
|gui.txt| For generic items of the GUI.
20-
|os_win32.txt| For Win32 specific items.
20+
|os_win32.txt| For Win32 specific items.
2121

2222

2323
==============================================================================

runtime/doc/helphelp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Help on help files *helphelp*
101101
find a tag in a file with the same language as the
102102
current file. See |help-translated|.
103103

104-
*:helpc* *:helpclose*
104+
*:helpc* *:helpclose*
105105
:helpc[lose] Close one help window, if there is one.
106106
Vim will try to restore the window layout (including
107107
cursor position) to the same layout it was before

runtime/doc/if_pyth.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ You can test what Python version is available with: >
857857
if has('python')
858858
echo 'there is Python 2.x'
859859
endif
860-
if has('python3')
860+
if has('python3')
861861
echo 'there is Python 3.x'
862862
endif
863863
@@ -874,7 +874,7 @@ python support: >
874874
echo 'Python 2.x dynamically loaded'
875875
endif
876876
endif
877-
if has('python3_compiled')
877+
if has('python3_compiled')
878878
echo 'compiled with Python 3.x support'
879879
if has('python3_dynamic')
880880
echo 'Python 3.x dynamically loaded'

runtime/doc/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ tag char note action in Normal mode ~
236236
|CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op)
237237
|CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
238238
CTRL-\ a - z reserved for extensions
239-
CTRL-\ others not used
239+
CTRL-\ others not used
240240
|CTRL-]| CTRL-] :ta to ident under cursor
241241
|CTRL-^| CTRL-^ edit Nth alternate file (equivalent to
242242
":e #N")
@@ -247,7 +247,7 @@ tag char note action in Normal mode ~
247247
2 filter Nmove text through the {filter}
248248
command
249249
|!!| !!{filter} 2 filter N lines through the {filter} command
250-
|quote| "{register} use {register} for next delete, yank or put
250+
|quote| "{register} use {register} for next delete, yank or put
251251
({.%#:} only work with put)
252252
|#| # 1 search backward for the Nth occurrence of
253253
the ident under the cursor

runtime/doc/insert.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ Groß): >
877877
878878
func Thesaur(findstart, base)
879879
if a:findstart
880-
return searchpos('\<', 'bnW', line('.'))[1] - 1
880+
return searchpos('\<', 'bnW', line('.'))[1] - 1
881881
endif
882882
let res = []
883883
let h = ''
@@ -1118,8 +1118,8 @@ cursor column will be replaced with the matches. If the returned value is
11181118
larger than the cursor column, the cursor column is used.
11191119

11201120
Negative return values:
1121-
-2 To cancel silently and stay in completion mode.
1122-
-3 To cancel silently and leave completion mode.
1121+
-2 To cancel silently and stay in completion mode.
1122+
-3 To cancel silently and leave completion mode.
11231123
Another negative value: completion starts at the cursor column
11241124

11251125
On the second invocation the arguments are:
@@ -1176,7 +1176,7 @@ items:
11761176
item with the same word is already present.
11771177
empty when non-zero this match will be added even when it is
11781178
an empty string
1179-
user_data custom data which is associated with the item and
1179+
user_data custom data which is associated with the item and
11801180
available in |v:completed_item|; it can be any type;
11811181
defaults to an empty string
11821182

runtime/doc/map.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 9.0. Last change: 2023 Jan 09
1+
*map.txt* For Vim version 9.0. Last change: 2023 Feb 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -845,7 +845,7 @@ option). After that it assumes that the 'q' is to be interpreted as such. If
845845
you type slowly, or your system is slow, reset the 'timeout' option. Then you
846846
might want to set the 'ttimeout' option.
847847

848-
*map-precedence*
848+
*map-precedence*
849849
Buffer-local mappings (defined using |:map-<buffer>|) take precedence over
850850
global mappings. When a buffer-local mapping is the same as a global mapping,
851851
Vim will use the buffer-local mapping. In addition, Vim will use a complete
@@ -923,6 +923,11 @@ in the original Vi, you would get back the text before the first undo).
923923

924924
1.10 MAPPING ALT-KEYS *:map-alt-keys*
925925

926+
For a readable mapping command the <A-k> form can be used. Note that <A-k>
927+
and <A-K> are different, the latter will use an upper case letter. Actually,
928+
<A-K> and <A-S-K> are the same. Instead of "A" you can use "M". If you have
929+
an actual Meta modifier key, please see |:map-meta-keys|.
930+
926931
In the GUI Vim handles the Alt key itself, thus mapping keys with ALT should
927932
always work. But in a terminal Vim gets a sequence of bytes and has to figure
928933
out whether ALT was pressed or not.
@@ -1028,7 +1033,7 @@ enabled when it spots an escape sequence that must have been created by it.
10281033
To see if Vim detected such an escape sequence use `:verbose map`, the first
10291034
line will then show "Seen modifyOtherKeys: true" (possibly translated).
10301035

1031-
This automatic detection depends on receiving an escape code starting with
1036+
This automatic detection depends on receiving an escape code starting with
10321037
"<1b>[27;". This is the normal way xterm sends these key codes. However, if
10331038
the *formatOtherKeys* resource is set another form is used that is not
10341039
recognized, therefore you must not set formatOtherKeys.
@@ -1069,7 +1074,7 @@ translated). The meaning of {value}:
10691074
Disabled protocol was used but expected to have been disabled
10701075
by 't_TE'
10711076
Cleared protocol expected to have beeen disabled by 't_TE',
1072-
previous state is unknown
1077+
previous state is unknown
10731078

10741079

10751080
1.14 MAPPING AN OPERATOR *:map-operator*
@@ -1212,7 +1217,7 @@ non-id The "non-id" type ends in a non-keyword character, the other
12121217
Examples of strings that cannot be abbreviations: "a.b", "#def", "a b", "_$r"
12131218

12141219
An abbreviation is only recognized when you type a non-keyword character.
1215-
This can also be the <Esc> that ends insert mode or the <CR> that ends a
1220+
This can also be the <Esc> that ends Insert mode or the <CR> that ends a
12161221
command. The non-keyword character which ends the abbreviation is inserted
12171222
after the expanded abbreviation. An exception to this is the character <C-]>,
12181223
which is used to expand an abbreviation without inserting any extra
@@ -1723,7 +1728,7 @@ by default correspond to the current line, last line and the whole buffer,
17231728
relate to arguments, (loaded) buffers, windows or tab pages.
17241729

17251730
Possible values are (second column is the short name used in listing):
1726-
-addr=lines Range of lines (this is the default for -range)
1731+
-addr=lines Range of lines (this is the default for -range)
17271732
-addr=arguments arg Range for arguments
17281733
-addr=buffers buf Range for buffers (also not loaded buffers)
17291734
-addr=loaded_buffers load Range for loaded buffers

0 commit comments

Comments
 (0)