Skip to content

Commit a9f43e3

Browse files
committed
terminal.txt: Update Vim 8.2.5077
1 parent 373ef69 commit a9f43e3

File tree

1 file changed

+46
-15
lines changed

1 file changed

+46
-15
lines changed

en/terminal.txt

Lines changed: 46 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 8.2. Last change: 2022 Apr 06
1+
*terminal.txt* For Vim version 8.2. Last change: 2022 Jun 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -101,7 +101,7 @@ The special key combination CTRL-\ CTRL-N can be used to switch to Normal
101101
mode, just like this works in any other mode.
102102
*t_CTRL-W_CTRL-C*
103103
CTRL-W CTRL-C can be typed to forcefully end the job. On MS-Windows a
104-
CTRL-BREAK will also kill the job.
104+
CTRL-Break will also kill the job.
105105

106106
If you type CTRL-C the effect depends on what the pty has been configured to
107107
do. For simple commands this causes a SIGINT to be sent to the job, which
@@ -1367,7 +1367,7 @@ Four autocommands can be used: >
13671367
*TermdebugStartPre*
13681368
TermdebugStartPre Before starting debugging.
13691369
Not triggered if the debugger is already
1370-
running or |g:termdebugger| cannot be
1370+
running or the debugger command cannot be
13711371
executed.
13721372
*TermdebugStartPost*
13731373
TermdebugStartPost After debugging has initialized.
@@ -1398,18 +1398,24 @@ in a buffer with 'buftype' set to "prompt". This works slightly differently:
13981398

13991399
*termdebug_use_prompt*
14001400
Prompt mode can be used even when the |+terminal| feature is present with: >
1401+
let g:termdebug_config['use_prompt'] = 1
1402+
Or if there is no g:termdebug_config: >
14011403
let g:termdebug_use_prompt = 1
14021404
<
14031405
*termdebug_map_K*
14041406
The K key is normally mapped to :Evaluate. If you do not want this use: >
1407+
let g:termdebug_config['map_K'] = 0
1408+
Or if there is no g:termdebug_config: >
14051409
let g:termdebug_map_K = 0
1406-
14071410
<
14081411
*termdebug_disasm_window*
1409-
If you want the Asm window shown by default, set this to 1. Setting to
1410-
any value greater than 1 will set the Asm window height to that value: >
1412+
If you want the Asm window shown by default, set the flag to 1.
1413+
the "disasm_window_height" entry can be used to set the window height: >
1414+
let g:termdebug_config['disasm_window'] = 1
1415+
let g:termdebug_config['disasm_window_height'] = 15
1416+
or, if there is no g:termdebug_config: >
14111417
let g:termdebug_disasm_window = 15
1412-
<
1418+
Any value greater than 1 will set the Asm window height to that value: >
14131419
14141420
Communication ~
14151421
*termdebug-communication*
@@ -1426,24 +1432,45 @@ communication channel.
14261432

14271433

14281434
Customizing ~
1435+
*termdebug-customizing* *g:termdebug_config*
1436+
In the past several global variables were used for configuration. These are
1437+
deprecated, using the g:termdebug_config dictionary is preferred. When
1438+
g:termdebug_config exists the other global variables will not be used.
14291439

1430-
GDB command *termdebug-customizing*
1440+
1441+
GDB command ~
14311442
*g:termdebugger*
1432-
To change the name of the gdb command, set the "g:termdebugger" variable before
1433-
invoking `:Termdebug`: >
1443+
To change the name of the gdb command, set "debugger" entry in
1444+
g:termdebug_config or the "g:termdebugger" variable before invoking
1445+
`:Termdebug`: >
1446+
let g:termdebug_config['command'] = "mygdb"
1447+
Or if there is no g:termdebug_config: >
14341448
let g:termdebugger = "mygdb"
1449+
14351450
If the command needs an argument use a List: >
1451+
let g:termdebug_config['command'] = ['rr', 'replay', '--']
1452+
Or if there is no g:termdebug_config: >
14361453
let g:termdebugger = ['rr', 'replay', '--']
1437-
< *gdb-version*
1454+
1455+
Several arguments will be added to make gdb work well for the debugger.
1456+
If you want to modify them, add a function to filter the argument list: >
1457+
let g:termdebug_config['command_filter'] = MyDebugFilter
1458+
1459+
If you do not want the arguments to be added, but you do need to set the
1460+
"pty", use a function to add the necessary arguments: >
1461+
let g:termdebug_config['command_add_args'] = MyAddArguments
1462+
The function will be called with the list of arguments so far, and a second
1463+
argument that is the name of the pty.
1464+
*gdb-version*
14381465
Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI
14391466
interface. The "new-ui" command requires gdb version 7.12 or later. if you
14401467
get this error:
14411468
Undefined command: "new-ui". Try "help".~
14421469
Then your gdb is too old.
14431470

14441471

1445-
Colors *hl-debugPC* *hl-debugBreakpoint*
1446-
1472+
Colors~
1473+
*hl-debugPC* *hl-debugBreakpoint*
14471474
The color of the signs can be adjusted with these highlight groups:
14481475
- debugPC the current position
14491476
- debugBreakpoint a breakpoint
@@ -1473,22 +1500,26 @@ these entries to the popup menu:
14731500
Clear breakpoint `:Clear`
14741501
Evaluate `:Evaluate`
14751502
If you don't want this then disable it with: >
1503+
let g:termdebug_config['popup'] = 0
1504+
or if there is no g:termdebug_config: >
14761505
let g:termdebug_popup = 0
14771506
14781507
14791508
Vim window width *termdebug_wide*
14801509

14811510
To change the width of the Vim window when debugging starts and use a vertical
14821511
split: >
1512+
let g:termdebug_config['wide'] = 163
1513+
Or if there is no g:termdebug_config: >
14831514
let g:termdebug_wide = 163
14841515
14851516
This will set 'columns' to 163 when `:Termdebug` is used. The value is
14861517
restored when quitting the debugger.
14871518

1488-
If g:termdebug_wide is set and 'columns' is already a greater value, then a
1519+
If the wide value is set and 'columns' is already a greater value, then a
14891520
vertical split will be used without modifying 'columns'.
14901521

1491-
Set g:termdebug_wide to 1 to use a vertical split without ever changing
1522+
Set the wide value to 1 to use a vertical split without ever changing
14921523
'columns'. This is useful when the terminal can't be resized by Vim.
14931524

14941525

0 commit comments

Comments
 (0)