Skip to content

Commit ef0e85c

Browse files
authored
Merge pull request #1592 from vim-jp/hh-update-terminal
Update terminal.{txt,jax}
2 parents 471e4ae + 9d1f950 commit ef0e85c

File tree

2 files changed

+51
-26
lines changed

2 files changed

+51
-26
lines changed

doc/terminal.jax

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Jun 13
1+
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Jun 20
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -641,7 +641,7 @@ term_getjob({buf}) *term_getjob()*
641641
端末ウィンドウ {buf} に関連付いたジョブを取得する。
642642
{buf} の扱いについては |term_getsize()| と同じ。
643643
ジョブがない場合は |v:null| を返す。Vim9 script では、ジョブが
644-
ない場合 null_job を返す。
644+
ない場合 |null_job| を返す。
645645

646646
|method| としても使用できる: >
647647
GetBufnr()->term_getjob()
@@ -1272,6 +1272,15 @@ debugPC を使ってサインが利用されます。
12721272
2つのウィンドウが閉じられます。
12731273

12741274
一度にアクティブにできるデバッガは1つだけです。
1275+
1276+
*termdebug-timeout*
1277+
gdb の起動方法によっては、termdebug の起動時間が異なる場合があります。
1278+
gdb の起動プロセスに時間が掛かりすぎる場合に termdebug が停止しないように、設
1279+
定可能なタイムアウトが含まれています。このタイムアウトは、10 ミリ秒の倍数で設
1280+
定できます: >
1281+
let g:termdebug_config['timeout'] = 500 # 500 * 10 ミリ秒 = 5 秒。
1282+
1283+
デフォルトのタイムアウトは 3000 ミリ秒です。
12751284
*:TermdebugCommand*
12761285
デバッグ中のコマンドに特定のコマンドを与える場合は、`:TermdebugCommand` コマン
12771286
ドの後にコマンド名と追加パラメータを使用できます。 >
@@ -1370,8 +1379,8 @@ gdb ウィンドウにフォーカスを移しコマンドを入力します。
13701379

13711380
*:Run* *:Arguments*
13721381
ソースコードを表示するウィンドウで、これらのコマンドをgdbの制御に使用できます:
1373-
:Run [args] [args] または以前の引数でプログラムを実行する
1374-
:Arguments {args} 次の `:Run` のために引数を設定する
1382+
`:Run` [args] [args] または以前の引数でプログラムを実行する
1383+
`:Arguments` {args} 次の `:Run` のために引数を設定する
13751384
*:Break* カーソル位置にブレークポイントを設定する
13761385
:Break {position}
13771386
指定位置にブレークポイントを設定する
@@ -1416,25 +1425,25 @@ gdbは各ブレークポイントに番号を与えます。Vim内では、赤
14161425

14171426
変数を検査する ~
14181427
*termdebug-variables* *:Evaluate*
1419-
:Evaluate カーソルの下の式を評価する
1420-
K 上に同じ (無効にする場合は |termdebug_map_K| を参照)
1421-
:Evaluate {expr} {expr} を評価する
1422-
:'<,'>Evaluate ビジュアル選択したテキストを評価する
1428+
`:Evaluate` カーソルの下の式を評価する
1429+
`K` 上に同じ (無効にする場合は |termdebug_map_K| を参照)
1430+
`:Evaluate` {expr} {expr} を評価する
1431+
`:'<,'>Evaluate` ビジュアル選択したテキストを評価する
14231432

14241433
これは gdb ウィンドウで "print" コマンドを使ったのに相当します。
14251434
`:Evaluate``:Ev` に短縮できます。
14261435

14271436

14281437
スタックフレームの移動 ~
14291438
*termdebug-frames* *:Frame* *:Up* *:Down*
1430-
:Frame [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
1439+
`:Frame` [frame] フレームを選択する。[frame] は、フレーム番号、アドレ
14311440
ス、または関数名 (デフォルト: カレントフレーム)
1432-
:Up [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
1441+
`:Up` [count] [count] フレーム上へ (デフォルト: 1; カレントを呼び出
14331442
したフレーム)
1434-
+ 同上 (無効にするには |termdebug_map_plus| を参照)
1435-
:Down [count] [count] フレーム下へ (デフォルト: 1; カレントによって
1443+
`+` 同上 (無効にするには |termdebug_map_plus| を参照)
1444+
`:Down` [count] [count] フレーム下へ (デフォルト: 1; カレントによって
14361445
呼び出されるフレーム)
1437-
- 同上 (無効にするには |termdebug_map_minus| を参照)
1446+
`-` 同上 (無効にするには |termdebug_map_minus| を参照)
14381447

14391448

14401449
その他のコマンド ~
@@ -1509,6 +1518,10 @@ g:termdebug_config がない場合は、以下を使用できます: >
15091518
let g:termdebug_use_prompt = 1
15101519
<
15111520
マッピング ~
1521+
termdebug プラグインは、いくつかのデフォルトマッピングを有効にします。
1522+
termdebug セッションが終了すると、これらのマッピングはすべて元の値にリセットさ
1523+
れます。
1524+
15121525
*termdebug_map_K* *termdebug-mappings*
15131526
K へのバッファローカル (|:map-local|) マッピングがすでに存在している場合を除
15141527
き、K キーは通常 |:Evaluate| にマップされています。これが不要な場合は: >

en/terminal.txt

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*terminal.txt* For Vim version 9.1. Last change: 2024 Jun 13
1+
*terminal.txt* For Vim version 9.1. Last change: 2024 Jun 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -648,7 +648,7 @@ term_getjob({buf}) *term_getjob()*
648648
Get the Job associated with terminal window {buf}.
649649
{buf} is used as with |term_getsize()|.
650650
Returns |v:null| when there is no job. In Vim9 script, return
651-
null_job when there is no job.
651+
|null_job| when there is no job.
652652

653653
Can also be used as a |method|: >
654654
GetBufnr()->term_getjob()
@@ -1283,6 +1283,15 @@ When the debugger ends, typically by typing "quit" in the gdb window, the two
12831283
opened windows are closed.
12841284

12851285
Only one debugger can be active at a time.
1286+
1287+
*termdebug-timeout*
1288+
Depending on how gdb is launched, termdebug startup time may vary.
1289+
To avoid termdebug to get stuck if the startup process of gdb takes too long,
1290+
a configurable timeout is included. Such time out is configurable in terms of
1291+
multiple of 10ms: >
1292+
let g:termdebug_config['timeout'] = 500 # 500 * 10ms = 5 seconds.
1293+
1294+
The default timeout is 3000 ms.
12861295
*:TermdebugCommand*
12871296
If you want to give specific commands to the command being debugged, you can
12881297
use the `:TermdebugCommand` command followed by the command name and
@@ -1383,8 +1392,8 @@ Put focus on the gdb window to type commands there. Some common ones are:
13831392
*:Run* *:Arguments*
13841393
In the window showing the source code these commands can be used to control
13851394
gdb:
1386-
:Run [args] run the program with [args] or the previous arguments
1387-
:Arguments {args} set arguments for the next `:Run`
1395+
`:Run` [args] run the program with [args] or the previous arguments
1396+
`:Arguments` {args} set arguments for the next `:Run`
13881397

13891398
*:Break* set a breakpoint at the cursor position
13901399
:Break {position}
@@ -1430,25 +1439,25 @@ breakpoint, or use the "Clear breakpoint" right-click menu entry.
14301439

14311440
Inspecting variables ~
14321441
*termdebug-variables* *:Evaluate*
1433-
:Evaluate evaluate the expression under the cursor
1434-
K same (see |termdebug_map_K| to disable)
1435-
:Evaluate {expr} evaluate {expr}
1436-
:'<,'>Evaluate evaluate the Visually selected text
1442+
`:Evaluate` evaluate the expression under the cursor
1443+
`K` same (see |termdebug_map_K| to disable)
1444+
`:Evaluate` {expr} evaluate {expr}
1445+
`:'<,'>Evaluate` evaluate the Visually selected text
14371446

14381447
This is similar to using "print" in the gdb window.
14391448
You can usually shorten `:Evaluate` to `:Ev`.
14401449

14411450

14421451
Navigating stack frames ~
14431452
*termdebug-frames* *:Frame* *:Up* *:Down*
1444-
:Frame [frame] select frame [frame], which is a frame number,
1453+
`:Frame` [frame] select frame [frame], which is a frame number,
14451454
address, or function name (default: current frame)
1446-
:Up [count] go up [count] frames (default: 1; the frame that
1455+
`:Up` [count] go up [count] frames (default: 1; the frame that
14471456
called the current)
1448-
+ same (see |termdebug_map_plus| to disable)
1449-
:Down [count] go down [count] frames (default: 1; the frame called
1457+
`+` same (see |termdebug_map_plus| to disable)
1458+
`:Down` [count] go down [count] frames (default: 1; the frame called
14501459
by the current)
1451-
- same (see |termdebug_map_minus| to disable)
1460+
`-` same (see |termdebug_map_minus| to disable)
14521461

14531462

14541463
Other commands ~
@@ -1524,6 +1533,9 @@ If there is no g:termdebug_config you can use: >
15241533
let g:termdebug_use_prompt = 1
15251534
<
15261535
Mappings ~
1536+
The termdebug plugin enables a few default mappings. All those mappings
1537+
are reset to their original values once the termdebug session concludes.
1538+
15271539
*termdebug_map_K* *termdebug-mappings*
15281540
The K key is normally mapped to |:Evaluate| unless a buffer local (|:map-local|)
15291541
mapping to K already exists. If you do not want this use: >

0 commit comments

Comments
 (0)