Skip to content

Commit d13166e

Browse files
committed
Update runtime files
1 parent 236dffa commit d13166e

24 files changed

Lines changed: 324 additions & 102 deletions

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 Nov 09
1+
*builtin.txt* For Vim version 9.0. Last change: 2022 Nov 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/cmdline.txt

Lines changed: 1 addition & 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 Sep 26
1+
*cmdline.txt* For Vim version 9.0. Last change: 2022 Nov 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/eval.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 9.0. Last change: 2022 Oct 07
1+
*eval.txt* For Vim version 9.0. Last change: 2022 Nov 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3073,6 +3073,10 @@ text...
30733073
Unlock the internal variable {name}. Does the
30743074
opposite of |:lockvar|.
30753075

3076+
If {name} does not exist:
3077+
- In |Vim9| script an error is given.
3078+
- In legacy script this is silently ignored.
3079+
30763080
:if {expr1} *:if* *:end* *:endif* *:en* *E171* *E579* *E580*
30773081
:en[dif] Execute the commands until the next matching `:else`
30783082
or `:endif` if {expr1} evaluates to non-zero.

runtime/doc/gui.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui.txt* For Vim version 9.0. Last change: 2022 Apr 03
1+
*gui.txt* For Vim version 9.0. Last change: 2022 Nov 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -889,6 +889,11 @@ s The menu was defined with "<silent>" to avoid showing what it is
889889
Note that hitting <Tab> while entering a menu name after a menu command may
890890
be used to complete the name of the menu item.
891891

892+
It is not allowed to change menus while listing them. *E1310*
893+
This doesn't normally happen, only when, for example, you would have a timer
894+
callback define a menu and the user lists menus in a way it shows
895+
|more-prompt|.
896+
892897

893898
5.4 Executing Menus *execute-menus*
894899

runtime/doc/map.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 9.0. Last change: 2022 Oct 19
1+
*map.txt* For Vim version 9.0. Last change: 2022 Nov 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -584,6 +584,9 @@ is the start of the last selected Visual area in the current buffer |'<|.
584584
The |:filter| command can be used to select what mappings to list. The
585585
pattern is matched against the {lhs} and {rhs} in the raw form.
586586

587+
While mappings are being listed, it is not possible to add or clear mappings,
588+
e.g. from a timer callback. *E1309*
589+
587590
*:map-verbose*
588591
When 'verbose' is non-zero, listing a key map will also display where it was
589592
last defined. Example: >
@@ -1476,6 +1479,8 @@ See |:verbose-cmd| for more information.
14761479

14771480
:delc[ommand] {cmd} *:delc* *:delcommand* *E184*
14781481
Delete the user-defined command {cmd}.
1482+
This is not allowed while listing commands, e.g. from
1483+
a timer. *E1311*
14791484

14801485
:delc[ommand] -buffer {cmd} *E1237*
14811486
Delete the user-defined command {cmd} that was defined

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 Oct 28
1+
*options.txt* For Vim version 9.0. Last change: 2022 Nov 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/syntax.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.0. Last change: 2022 Nov 06
1+
*syntax.txt* For Vim version 9.0. Last change: 2022 Nov 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1888,6 +1888,16 @@ following two lines to the syntax coloring file for that language
18881888
Now you just need to make sure that you add all regions that contain
18891889
the preprocessor language to the cluster htmlPreproc.
18901890

1891+
*html-folding*
1892+
The HTML syntax file provides syntax |folding| (see |:syn-fold|) between start
1893+
and end tags. This can be turned on by >
1894+
1895+
:let g:html_syntax_folding = 1
1896+
:set foldmethod=syntax
1897+
1898+
Note: Syntax folding might slow down syntax highlighting significantly,
1899+
especially for large files.
1900+
18911901

18921902
HTML/OS (by Aestiva) *htmlos.vim* *ft-htmlos-syntax*
18931903

@@ -5394,8 +5404,8 @@ CursorLineSign Like SignColumn when 'cursorline' is set for the cursor line.
53945404
MatchParen Character under the cursor or just before it, if it
53955405
is a paired bracket, and its match. |pi_paren.txt|
53965406
*hl-MessageWindow*
5397-
MessageWindow Messages popup window used when 'cmdheight' is zero. If not
5398-
defined |hl-WarningMsg| is used.
5407+
MessageWindow Messages popup window used by `:echowindow`. If not defined
5408+
|hl-WarningMsg| is used.
53995409
*hl-ModeMsg*
54005410
ModeMsg 'showmode' message (e.g., "-- INSERT --").
54015411
*hl-MoreMsg*

runtime/doc/tags

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,6 +3042,9 @@ $quote eval.txt /*$quote*
30423042
:r! insert.txt /*:r!*
30433043
:range cmdline.txt /*:range*
30443044
:range! change.txt /*:range!*
3045+
:range-closed-fold cmdline.txt /*:range-closed-fold*
3046+
:range-offset cmdline.txt /*:range-offset*
3047+
:range-pattern cmdline.txt /*:range-pattern*
30453048
:re insert.txt /*:re*
30463049
:read insert.txt /*:read*
30473050
:read! insert.txt /*:read!*
@@ -4355,7 +4358,10 @@ E1305 textprop.txt /*E1305*
43554358
E1306 vim9.txt /*E1306*
43564359
E1307 vim9.txt /*E1307*
43574360
E1308 builtin.txt /*E1308*
4361+
E1309 map.txt /*E1309*
43584362
E131 userfunc.txt /*E131*
4363+
E1310 gui.txt /*E1310*
4364+
E1311 map.txt /*E1311*
43594365
E132 userfunc.txt /*E132*
43604366
E133 userfunc.txt /*E133*
43614367
E134 change.txt /*E134*
@@ -7512,6 +7518,7 @@ getloclist() builtin.txt /*getloclist()*
75127518
getmarklist() builtin.txt /*getmarklist()*
75137519
getmatches() builtin.txt /*getmatches()*
75147520
getmousepos() builtin.txt /*getmousepos()*
7521+
getmouseshape() builtin.txt /*getmouseshape()*
75157522
getpid() builtin.txt /*getpid()*
75167523
getpos() builtin.txt /*getpos()*
75177524
getqflist() builtin.txt /*getqflist()*
@@ -7832,6 +7839,7 @@ howto.txt howto.txt /*howto.txt*
78327839
hpterm term.txt /*hpterm*
78337840
hpterm-color syntax.txt /*hpterm-color*
78347841
html-flavor insert.txt /*html-flavor*
7842+
html-folding syntax.txt /*html-folding*
78357843
html-indent indent.txt /*html-indent*
78367844
html-indenting indent.txt /*html-indenting*
78377845
html.vim syntax.txt /*html.vim*
@@ -10179,6 +10187,7 @@ termdebug_popup terminal.txt /*termdebug_popup*
1017910187
termdebug_shortcuts terminal.txt /*termdebug_shortcuts*
1018010188
termdebug_use_prompt terminal.txt /*termdebug_use_prompt*
1018110189
termdebug_wide terminal.txt /*termdebug_wide*
10190+
termdebug_winbar terminal.txt /*termdebug_winbar*
1018210191
terminal terminal.txt /*terminal*
1018310192
terminal-api terminal.txt /*terminal-api*
1018410193
terminal-autoshelldir terminal.txt /*terminal-autoshelldir*

runtime/doc/terminal.txt

Lines changed: 31 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 9.0. Last change: 2022 Oct 10
1+
*terminal.txt* For Vim version 9.0. Last change: 2022 Nov 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -469,7 +469,6 @@ ConPTY problems have been fixed "winpty" will be preferred.
469469
Environment variables are used to pass information to the running job:
470470
VIM_SERVERNAME v:servername
471471

472-
473472
==============================================================================
474473
2. Terminal functions *terminal-function-details*
475474

@@ -1129,7 +1128,6 @@ reference: >
11291128
11301129
Creating a screen dump ~
11311130
*terminal-screendump*
1132-
11331131
To create the screen dump, run Vim (or any other program) in a terminal and
11341132
make it show the desired state. Then use the |term_dumpwrite()| function to
11351133
create a screen dump file. For example: >
@@ -1153,7 +1151,6 @@ If there are differences then v:errors will contain the error message.
11531151

11541152
Comparing screen dumps ~
11551153
*terminal-diffscreendump*
1156-
11571154
|assert_equalfile()| does not make it easy to see what is different.
11581155
To spot the problem use |term_dumpdiff()|: >
11591156
call term_dumpdiff("mysyntax.dump", "test.dump")
@@ -1350,6 +1347,7 @@ If 'mouse' is set the plugin adds a window toolbar with these entries:
13501347
Eval `:Evaluate`
13511348
This way you can use the mouse to perform the most common commands. You need
13521349
to have the 'mouse' option set to enable mouse clicks.
1350+
See |termdebug_winbar| for configuring this toolbar.
13531351
*:Winbar*
13541352
You can add the window toolbar in other windows you open with: >
13551353
:Winbar
@@ -1415,6 +1413,20 @@ TermdebugStopPost After debugging has ended, gdb-related windows
14151413
the state before the debugging was restored.
14161414

14171415

1416+
Customizing ~
1417+
*termdebug-customizing* *g:termdebug_config*
1418+
In the past several global variables were used for configuration. These are
1419+
deprecated and using the g:termdebug_config dictionary is preferred. When
1420+
g:termdebug_config exists the other global variables will NOT be used.
1421+
The recommended way is to start with an empty dictionary: >
1422+
let g:termdebug_config = {}
1423+
1424+
Then you can add entries to the dictionary as mentioned below. The
1425+
deprecated global variable names are mentioned for completeness. If you are
1426+
switching over to using g:termdebug_config you can find the old variable name
1427+
and take over the value, then delete the deprecated variable.
1428+
1429+
14181430
Prompt mode ~
14191431
*termdebug-prompt*
14201432
When the |+terminal| feature is not supported and on MS-Windows, gdb will run
@@ -1430,21 +1442,21 @@ in a buffer with 'buftype' set to "prompt". This works slightly differently:
14301442
*termdebug_use_prompt*
14311443
Prompt mode can be used even when the |+terminal| feature is present with: >
14321444
let g:termdebug_config['use_prompt'] = 1
1433-
Or if there is no g:termdebug_config: >
1445+
If there is no g:termdebug_config you can use: >
14341446
let g:termdebug_use_prompt = 1
14351447
<
14361448
*termdebug_map_K*
14371449
The K key is normally mapped to :Evaluate. If you do not want this use: >
14381450
let g:termdebug_config['map_K'] = 0
1439-
Or if there is no g:termdebug_config: >
1451+
If there is no g:termdebug_config you can use: >
14401452
let g:termdebug_map_K = 0
14411453
<
14421454
*termdebug_disasm_window*
14431455
If you want the Asm window shown by default, set the flag to 1.
14441456
the "disasm_window_height" entry can be used to set the window height: >
14451457
let g:termdebug_config['disasm_window'] = 1
14461458
let g:termdebug_config['disasm_window_height'] = 15
1447-
or, if there is no g:termdebug_config: >
1459+
If there is no g:termdebug_config you can use: >
14481460
let g:termdebug_disasm_window = 15
14491461
Any value greater than 1 will set the Asm window height to that value.
14501462

@@ -1462,25 +1474,18 @@ interrupt the running program. But after using the MI command
14621474
communication channel.
14631475

14641476

1465-
Customizing ~
1466-
*termdebug-customizing* *g:termdebug_config*
1467-
In the past several global variables were used for configuration. These are
1468-
deprecated, using the g:termdebug_config dictionary is preferred. When
1469-
g:termdebug_config exists the other global variables will not be used.
1470-
1471-
14721477
GDB command ~
14731478
*g:termdebugger*
14741479
To change the name of the gdb command, set "debugger" entry in
14751480
g:termdebug_config or the "g:termdebugger" variable before invoking
14761481
`:Termdebug`: >
14771482
let g:termdebug_config['command'] = "mygdb"
1478-
Or if there is no g:termdebug_config: >
1483+
If there is no g:termdebug_config you can use: >
14791484
let g:termdebugger = "mygdb"
14801485
14811486
If the command needs an argument use a List: >
14821487
let g:termdebug_config['command'] = ['rr', 'replay', '--']
1483-
Or if there is no g:termdebug_config: >
1488+
If there is no g:termdebug_config you can use: >
14841489
let g:termdebugger = ['rr', 'replay', '--']
14851490
14861491
Several arguments will be added to make gdb work well for the debugger.
@@ -1501,7 +1506,7 @@ Then your gdb is too old.
15011506

15021507

15031508
Colors ~
1504-
*hl-debugPC* *hl-debugBreakpoint*
1509+
*hl-debugPC* *hl-debugBreakpoint*
15051510
The color of the signs can be adjusted with these highlight groups:
15061511
- debugPC the current position
15071512
- debugBreakpoint a breakpoint
@@ -1517,7 +1522,6 @@ When 'background' is "dark":
15171522

15181523
Shortcuts ~
15191524
*termdebug_shortcuts*
1520-
15211525
You can define your own shortcuts (mappings) to control gdb, that can work in
15221526
any window, using the TermDebugSendCommand() function. Example: >
15231527
map ,w :call TermDebugSendCommand('where')<CR>
@@ -1526,25 +1530,30 @@ The argument is the gdb command.
15261530

15271531
Popup menu ~
15281532
*termdebug_popup*
1529-
15301533
By default the Termdebug plugin sets 'mousemodel' to "popup_setpos" and adds
15311534
these entries to the popup menu:
15321535
Set breakpoint `:Break`
15331536
Clear breakpoint `:Clear`
15341537
Evaluate `:Evaluate`
15351538
If you don't want this then disable it with: >
15361539
let g:termdebug_config['popup'] = 0
1537-
or if there is no g:termdebug_config: >
1540+
If there is no g:termdebug_config you can use: >
15381541
let g:termdebug_popup = 0
15391542
15401543
1544+
Window toolbar ~
1545+
*termdebug_winbar*
1546+
By default the Termdebug plugin creates a window toolbar if the mouse is
1547+
enabled (see |:Winbar|). If you don't want this then disable it with: >
1548+
let g:termdebug_config['winbar'] = 0
1549+
1550+
15411551
Vim window width ~
15421552
*termdebug_wide*
1543-
15441553
To change the width of the Vim window when debugging starts and use a vertical
15451554
split: >
15461555
let g:termdebug_config['wide'] = 163
1547-
Or if there is no g:termdebug_config: >
1556+
If there is no g:termdebug_config you can use: >
15481557
let g:termdebug_wide = 163
15491558
15501559
This will set 'columns' to 163 when `:Termdebug` is used. The value is

0 commit comments

Comments
 (0)