Skip to content

Update terminal.{txt,jax} #1772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion doc/terminal.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Jul 28
*terminal.txt* For Vim バージョン 9.1. Last change: 2024 Oct 27


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -1509,6 +1509,7 @@ g:termdebug_config がない場合は、以下を使用できる: >
<
ただし、後者の形式は将来のリリースでは非推奨になる。


マッピング ~
termdebug プラグインは、いくつかのデフォルトマッピングを有効にする。
termdebug セッションが終了すると、これらのマッピングはすべて元の値にリセットさ
Expand Down Expand Up @@ -1565,6 +1566,7 @@ g:termdebug_config がない場合は、以下を使用できる: >
Var ウィンドウがソースコードウィンドウと並べて表示される (高さのオプションは使
用されない)。


通信 ~
*termdebug-communication*
Vim が gdb と通信するために他に隠されたバッファが使用される。バッファ名は "gdb
Expand Down Expand Up @@ -1609,6 +1611,7 @@ gdb と完全互換のあるデバッガのみが使える。Vim は gdb の操
Undefined command: "new-ui". Try "help".~
あなたの gdb が古すぎる。


カラー ~
*hl-debugPC* *hl-debugBreakpoint*
目印の色は以下のハイライトグループで調整できる:
Expand Down Expand Up @@ -1646,6 +1649,7 @@ g:termdebug_config がない場合は、以下を使用できる: >

ただし、後者の形式は将来のリリースでは非推奨になる。


デフォルトの目印の変更 ~
*termdebug_signs*
Termdebug は、signcolumn のブレークポイント ID の 16 進数を使用してブレークポ
Expand Down Expand Up @@ -1688,4 +1692,18 @@ g:termdebug_config がない場合は、以下を使用できる: >
Vimによってサイズ変更できない場合に便利である。


カーソル位置のポップアップウィンドウで評価する ~
*termdebug_evaluate_in_popup*
デフォルトでは、|:Evaluate| は単に出力をエコーする。エンティティが大きい場合、
読みにくくなったり、切り捨てられたりする可能性がある。
あるいは、評価結果を現在のカーソル位置のポップアップウィンドウに出力することも
できる: >
let g:termdebug_config['evaluate_in_popup'] = v:true
これは "one-shot" 方式でも使用できる: >
func OnCursorHold()
let g:termdebug_config['evaluate_in_popup'] = v:true
:Evaluate
let g:termdebug_config['evaluate_in_popup'] = v:false
endfunc
<
vim:tw=78:ts=8:noet:ft=help:norl:
21 changes: 19 additions & 2 deletions en/terminal.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*terminal.txt* For Vim version 9.1. Last change: 2024 Jul 28
*terminal.txt* For Vim version 9.1. Last change: 2024 Oct 27


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1537,6 +1537,7 @@ If there is no g:termdebug_config you can use: >
<
However, the latter form will be deprecated in future releases.


Mappings ~
The termdebug plugin enables a few default mappings. All those mappings
are reset to their original values once the termdebug session concludes.
Expand Down Expand Up @@ -1591,6 +1592,7 @@ If the current window has enough horizontal space, it will be vertically split
and the Var window will be shown side by side with the source code window (and
the height options won't be used).


Communication ~
*termdebug-communication*
There is another, hidden, buffer, which is used for Vim to communicate with
Expand Down Expand Up @@ -1675,10 +1677,11 @@ If there is no g:termdebug_config you can use: >

However, the latter form will be deprecated in future releases.


Change default signs ~
*termdebug_signs*
Termdebug uses the hex number of the breakpoint ID in the signcolumn to
represent breakpoints. if it is greater than "0xFF", then it will be displayed
represent breakpoints. If it is greater than "0xFF", then it will be displayed
as "F+", due to we really only have two screen cells for the sign.

If you want to customize the breakpoint signs: >
Expand Down Expand Up @@ -1716,4 +1719,18 @@ Set the wide value to 1 to use a vertical split without ever changing
'columns'. This is useful when the terminal can't be resized by Vim.


Evaluate in Popup Window at Cursor ~
*termdebug_evaluate_in_popup*
By default |:Evaluate| will simply echo its output. For larger entities this
might become difficult to read or even truncated.
Alternatively, the evaluation result may be output into a popup window at the
current cursor position: >
let g:termdebug_config['evaluate_in_popup'] = v:true
This can also be used in a "one-shot" manner: >
func OnCursorHold()
let g:termdebug_config['evaluate_in_popup'] = v:true
:Evaluate
let g:termdebug_config['evaluate_in_popup'] = v:false
endfunc
<
vim:tw=78:ts=8:noet:ft=help:norl: