Skip to content

Commit e1196ea

Browse files
authored
Merge pull request #1325 from vim-jp/hh-update-terminal
Update terminal.{txt,jax}
2 parents fb23bd6 + 28ffd3e commit e1196ea

File tree

2 files changed

+104
-11
lines changed

2 files changed

+104
-11
lines changed

doc/terminal.jax

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim バージョン 9.0. Last change: 2022 Nov 10
1+
*terminal.txt* For Vim バージョン 9.0. Last change: 2023 Aug 23
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -39,6 +39,7 @@
3939
セッション例 |termdebug-example|
4040
コードをステップ実行する |termdebug-stepping|
4141
変数を検査する |termdebug-variables|
42+
スタックフレームの移動 |termdebug-frames|
4243
その他のコマンド |termdebug-commands|
4344
イベント |termdebug-events|
4445
プロンプトモード |termdebug-prompt|
@@ -1363,14 +1364,28 @@ gdbは各ブレークポイントに番号を与えます。Vim内では、赤
13631364
`:Evaluate``:Ev` に短縮できます。
13641365

13651366

1367+
スタックフレームの移動 ~
1368+
*termdebug-frames* *:Frame* *:Up* *:Down*
1369+
`:Frame` [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
1370+
ス、または関数名 (デフォルト: カレントフレーム)
1371+
`:Up` [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
1372+
したフレーム)
1373+
`+` 同上 (無効にするには |termdebug_map_plus| を参照)
1374+
`:Down` [count] [count] フレーム下へ (デフォルト: 1; カレントによって
1375+
呼び出されるフレーム)
1376+
`-` 同上 (無効にするには |termdebug_map_minus| を参照)
1377+
1378+
13661379
その他のコマンド ~
13671380
*termdebug-commands*
13681381
*:Gdb* gdb ウィンドウに移動する
13691382
*:Program* デバッグ中のプログラムウィンドウに移動する
13701383
*:Source* ソースコードウィンドウにジャンプする、ウィンドウがなければ作成
1371-
する
1384+
する
13721385
*:Asm* 逆アセンブルウィンドウにジャンプする、ウィンドウがなければ作成す
13731386
1387+
*:Var* ローカル変数と引数変数のあるウィンドウにジャンプし、なければ作成
1388+
する。このウィンドウは、プログラムが停止されるたびに更新される
13741389

13751390
イベント ~
13761391
*termdebug-events*
@@ -1433,21 +1448,38 @@ g:termdebug_config がない場合は、以下を使用できます: >
14331448
let g:termdebug_use_prompt = 1
14341449
<
14351450
*termdebug_map_K*
1436-
K は通常 :Evaluate にマッピングされています。これが不要な場合は: >
1451+
K は通常 |:Evaluate| にマッピングされています。これが不要な場合は: >
14371452
let g:termdebug_config['map_K'] = 0
14381453
g:termdebug_config がない場合は、以下を使用できます: >
14391454
let g:termdebug_map_K = 0
1440-
1455+
<
1456+
*termdebug_map_minus*
1457+
- は通常 |:Down| にマッピングされています。これが不要な場合は: >
1458+
let g:termdebug_config['map_minus'] = 0
1459+
<
1460+
*termdebug_map_plus*
1461+
+ は通常 |:Up| にマッピングされています。これが不要な場合は: >
1462+
let g:termdebug_config['map_plus'] = 0
14411463
<
14421464
*termdebug_disasm_window*
1443-
Asm ウィンドウをデフォルトで表示させたい場合、このフラグに1を設定します。
1444-
"disasm_window_height" エントリを使用してウィンドウの高さを設定できます: >
1465+
Asm ウィンドウをデフォルトで表示させたい場合、"disasm_window" フラグに 1 を設
1466+
定します。"disasm_window_height" エントリを使用してウィンドウの高さを設定でき
1467+
ます: >
14451468
let g:termdebug_config['disasm_window'] = 1
14461469
let g:termdebug_config['disasm_window_height'] = 15
14471470
g:termdebug_config がない場合は、以下を使用できます: >
14481471
let g:termdebug_disasm_window = 15
14491472
1以上の任意の値を設定でき、その値が Asm ウィンドウの高さになります。
14501473

1474+
*termdebug_variables_window*
1475+
Var ウィンドウをデフォルトで表示させたい場合、このフラグを 1 に設定します。
1476+
"variables_window_height" エントリを使用してウィンドウの高さを設定できます: >
1477+
let g:termdebug_config['variables_window'] = 1
1478+
let g:termdebug_config['variables_window_height'] = 15
1479+
g:termdebug_config がない場合は、以下を使用できます: >
1480+
let g:termdebug_variables_window = 15
1481+
1 以上の任意の値を設定でき、その値が Var ウィンドウの高さになります。
1482+
14511483
通信 ~
14521484
*termdebug-communication*
14531485
Vim が gdb と通信するために他に隠されたバッファを利用します。バッファ名は "gdb
@@ -1528,6 +1560,20 @@ g:termdebug_config がない場合は、以下を使用できます: >
15281560
let g:termdebug_popup = 0
15291561
15301562
1563+
デフォルトの目印の変更 ~
1564+
*termdebug_signs*
1565+
Termdebug はブレークポイントを表すために、signcolumn のブレークポイント ID の
1566+
最後の 2 文字を使用します。例えば、ブレークポイント ID 133 は `33` と表示され
1567+
ます。
1568+
1569+
ブレークポイントの目印をカスタマイズしたい場合: >
1570+
let g:termdebug_config['sign'] = '>>'
1571+
g:terminal_config がまだない場合は、以下を使用できます: >
1572+
let g:termdebug_config = {'sign': '>>'}
1573+
1574+
この後、ブレークポイントはサイン欄に `>>` と表示されます。
1575+
1576+
15311577
ウィンドウツールバー ~
15321578
*termdebug_winbar*
15331579
デフォルトでは、マウスが有効な場合、Termdebug プラグインはウィンドウツールバー

en/terminal.txt

Lines changed: 52 additions & 5 deletions
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 Aug 23
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,6 +38,7 @@ If the result is "1" you have it.
3838
Example session |termdebug-example|
3939
Stepping through code |termdebug-stepping|
4040
Inspecting variables |termdebug-variables|
41+
Navigating stack frames |termdebug-frames|
4142
Other commands |termdebug-commands|
4243
Events |termdebug-events|
4344
Prompt mode |termdebug-prompt|
@@ -1376,6 +1377,18 @@ This is similar to using "print" in the gdb window.
13761377
You can usually shorten `:Evaluate` to `:Ev`.
13771378

13781379

1380+
Navigating stack frames ~
1381+
*termdebug-frames* *:Frame* *:Up* *:Down*
1382+
`:Frame` [frame] select frame [frame], which is a frame number,
1383+
address, or function name (default: current frame)
1384+
`:Up` [count] go up [count] frames (default: 1; the frame that
1385+
called the current)
1386+
`+` same (see |termdebug_map_plus| to disable)
1387+
`:Down` [count] go down [count] frames (default: 1; the frame called
1388+
by the current)
1389+
`-` same (see |termdebug_map_minus| to disable)
1390+
1391+
13791392
Other commands ~
13801393
*termdebug-commands*
13811394
*:Gdb* jump to the gdb window
@@ -1384,6 +1397,9 @@ Other commands ~
13841397
isn't one
13851398
*:Asm* jump to the window with the disassembly, create it if there
13861399
isn't one
1400+
*:Var* jump to the window with the local and argument variables,
1401+
create it if there isn't one. This window updates whenever the
1402+
program is stopped
13871403

13881404
Events ~
13891405
*termdebug-events*
@@ -1446,20 +1462,37 @@ If there is no g:termdebug_config you can use: >
14461462
let g:termdebug_use_prompt = 1
14471463
<
14481464
*termdebug_map_K*
1449-
The K key is normally mapped to :Evaluate. If you do not want this use: >
1465+
The K key is normally mapped to |:Evaluate|. If you do not want this use: >
14501466
let g:termdebug_config['map_K'] = 0
14511467
If there is no g:termdebug_config you can use: >
14521468
let g:termdebug_map_K = 0
1469+
<
1470+
*termdebug_map_minus*
1471+
The - key is normally mapped to |:Down|. If you do not want this use: >
1472+
let g:termdebug_config['map_minus'] = 0
1473+
<
1474+
*termdebug_map_plus*
1475+
The + key is normally mapped to |:Up|. If you do not want this use: >
1476+
let g:termdebug_config['map_plus'] = 0
14531477
<
14541478
*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: >
1479+
If you want the Asm window shown by default, set the "disasm_window" flag to
1480+
1. The "disasm_window_height" entry can be used to set the window height: >
14571481
let g:termdebug_config['disasm_window'] = 1
14581482
let g:termdebug_config['disasm_window_height'] = 15
14591483
If there is no g:termdebug_config you can use: >
14601484
let g:termdebug_disasm_window = 15
14611485
Any value greater than 1 will set the Asm window height to that value.
14621486

1487+
*termdebug_variables_window*
1488+
If you want the Var window shown by default, set the flag to 1.
1489+
the "variables_window_height" entry can be used to set the window height: >
1490+
let g:termdebug_config['variables_window'] = 1
1491+
let g:termdebug_config['variables_window_height'] = 15
1492+
If there is no g:termdebug_config you can use: >
1493+
let g:termdebug_variables_window = 15
1494+
Any value greater than 1 will set the Var window height to that value.
1495+
14631496
Communication ~
14641497
*termdebug-communication*
14651498
There is another, hidden, buffer, which is used for Vim to communicate with
@@ -1499,7 +1532,7 @@ The function will be called with the list of arguments so far, and a second
14991532
argument that is the name of the pty.
15001533
*gdb-version*
15011534
Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI
1502-
interface. The "new-ui" command requires gdb version 7.12 or later. if you
1535+
interface. The "new-ui" command requires gdb version 7.12 or later. If you
15031536
get this error:
15041537
Undefined command: "new-ui". Try "help".~
15051538
Then your gdb is too old.
@@ -1541,6 +1574,20 @@ If there is no g:termdebug_config you can use: >
15411574
let g:termdebug_popup = 0
15421575
15431576
1577+
Change default signs ~
1578+
*termdebug_signs*
1579+
Termdebug uses the last two characters of the breakpoint ID in the
1580+
signcolumn to represent breakpoints. For example, breakpoint ID 133
1581+
will be displayed as `33`.
1582+
1583+
If you want to customize the breakpoint signs: >
1584+
let g:termdebug_config['sign'] = '>>'
1585+
If there is no g:terminal_config yet you can use: >
1586+
let g:termdebug_config = {'sign': '>>'}
1587+
1588+
After this, breakpoints will be displayed as `>>` in the signcolumn.
1589+
1590+
15441591
Window toolbar ~
15451592
*termdebug_winbar*
15461593
By default the Termdebug plugin creates a window toolbar if the mouse is

0 commit comments

Comments
 (0)