Skip to content

Commit 0e8a2a6

Browse files
committed
Update by original
1 parent 3334e39 commit 0e8a2a6

2 files changed

Lines changed: 115 additions & 44 deletions

File tree

doc/options.jax

Lines changed: 58 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.2. Last change: 2026 Mar 04
1+
*options.txt* For Vim バージョン 9.2. Last change: 2026 Mar 12
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -8554,8 +8554,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
85548554
StatusLineNC が適用されることである。数 N は 1 以上 9 以下であ
85558555
る。|hl-User1..9| を参照。
85568556
*stl-%@*
8557-
@ - 改行を挿入する (|tabpanel| の場合、またはステータスライン
8558-
'statuslineopt' の "maxheight" 値が 1 より大きい場合)
8557+
@ - 改行を挿入する。これは、'statuslineopt' の "maxheight" 値が 1 よ
8558+
り大きい場合、または |tabpanel| の場合にのみ有効である
85598559

85608560
フラグを表示するとき、そのフラグがプレーンテキストの直後にあるな
85618561
ら、その先頭にコンマがある場合は削除される。そうすることによって以下の
@@ -8620,30 +8620,46 @@ Note 1番目の形式では、行全体がオプション指定に使われる
86208620
<
86218621
*'statuslineopt'* *'stlo'*
86228622
'statuslineopt' 'stlo' 文字列 (既定では "")
8623-
グローバル
8623+
グローバル/ウィンドウについてローカル |global-local|
86248624
{|+statusline| 機能付きでコンパイルされたときのみ有効}
86258625
|status-line| のオプション設定。以下の項目から構成される。すべて任意で
86268626
ある。項目はコンマで区切る必要がある。
86278627

8628-
maxheight:{n} ステータスラインの最大の高さを {n} に設定する。
8629-
{n} は 1 以上である必要がある。
8630-
指定がない場合は 1 が使用される。
8631-
{n} がすべてのタブページのすべてのウィンドウに
8632-
適用可能かどうかを確認し、適用できない場合は、
8633-
可能な限り最も近い値に設定する。
8634-
オプションの値は実際に適用された値に更新され
8635-
る。例えば、maxheight:999 と設定した場合、利用
8636-
可能なスペースによっては値が小さくなる可能性が
8637-
ある。
8638-
{n} を 2 以上に設定すると、'statusline' で "@"
8639-
を使用して、ステータスラインに複数行の情報を表
8640-
示できる。
8641-
|stl-%@| を参照。
8642-
8628+
fixedheight ステータスラインの高さを "maxheight" に固定する。
8629+
これがない場合、高さは 'statusline' 内の改行文字
8630+
|stl-%@| の数に基づいて 1 から "maxheight" まで変
8631+
化する。
8632+
8633+
maxheight:{n} ステータス ラインの最大の高さを {n} に設定する。
8634+
{n} は 1 以上である必要がある。指定されていない場
8635+
合、高さは 1 になる。
8636+
{n} が 2 以上の場合、'statusline' で改行 |stl-%@|
8637+
を使用して、複数行に情報を表示できる。
8638+
8639+
ウィンドウの高さが十分でないなどの制約により {n}
8640+
を設定できない場合は、{n} を超えない範囲で可能な限
8641+
り近い値を設定するようベストエフォート方式で処理さ
8642+
れる。設定を変更できない場合でもエラーは表示されな
8643+
い。
8644+
8645+
グローバル値には、すべてのタブページのすべてのウィ
8646+
ンドウに適用される値が使用される。ウィンドウローカ
8647+
ル値には、そのウィンドウに適用される値が使用され
8648+
る。
8649+
Note: 適用された値が {n} と異なる場合、オプション
8650+
はそれを反映して更新される。
8651+
更新されたオプションの例: >vim
8652+
:set statuslineopt=maxheight:999,fixedheight
8653+
" 適用できるのは 20 行までだったため、
8654+
" maxheight は 20 に更新された。
8655+
:set statuslineopt?
8656+
statuslineopt=maxheight:20,fixedheight
8657+
<
86438658
例: >
8659+
:set statuslineopt=fixedheight
86448660
:set stlo=
8645-
:set stlo=maxheight:2
8646-
:set stlo+=maxheight:3
8661+
:set stlo=maxheight:2,fixedheight
8662+
:set stlo-=fixedheight
86478663
<
86488664
*'suffixes'* *'su'*
86498665
'suffixes' 'su' 文字列 (既定では ".bak,~,.o,.h,.info,.swp,.obj")
@@ -8834,7 +8850,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
88348850

88358851
|g:actual_curtabpage| は、タブパネルに割り当てられた関数内で使用でき
88368852
る。|g:actual_curtabpage| はカレントタブページのラベル番号を表す。
8837-
新しい行を挿入するには、"%@" または "\n" を使用できる: >
8853+
改行を挿入するには、"%@" または "\n" を使用できる: >
88388854

88398855
set tabpanel=%!TabPanel()
88408856
function! TabPanel() abort
@@ -9126,6 +9142,26 @@ Note 1番目の形式では、行全体がオプション指定に使われる
91269142
<
91279143
NOTE: このオプションは、'compatible' がオンになるとオフになるので注意。
91289144

9145+
*'termresize'* *'trz'*
9146+
'termresize' 'trz' 文字列 (既定では "")
9147+
グローバル
9148+
{Vim の Unix 版でのみ使用可能、GUI では動作しない}
9149+
ウィンドウのサイズ変更イベントを検出するために使用する方法を決定する。
9150+
可能な値は以下のとおりである:
9151+
"sigwinch": SIGWINCH シグナルを使用する。
9152+
"inband": エスケープシーケンスを介して端末からサイズ変更イベ
9153+
ントを受信する (端末でサポートされている場合は推奨
9154+
される)。
9155+
"": 端末に応じて自動的に選択する。
9156+
9157+
The SIGWINCH handler is always available. If set to "inband" and the terminal does not support in-band window resize events, then the SIGWINCH handler will be used instead as a fallback. If set to "" (empty option), then "inband" will be used if Vim detects that the terminal supports it, otherwise "sigwinch".
9158+
SIGWINCH ハンドラは常に使用可能である。"inband" に設定され、端末がイン
9159+
バンドウィンドウサイズ変更イベントをサポートしていない場合は、フォール
9160+
バックとして SIGWINCH ハンドラが使用される。"" (空オプション) に設定さ
9161+
れている場合、Vim が端末がサポートしていることを検出した場合は
9162+
"inband" が使用され、そうでない場合は "sigwinch" が使用される。
9163+
9164+
91299165
*'termsync'* *'tsy'*
91309166
'termsync' 'tsy' 切替 (既定ではオフ)
91319167
グローバル

en/options.txt

Lines changed: 57 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.2. Last change: 2026 Mar 04
1+
*options.txt* For Vim version 9.2. Last change: 2026 Mar 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -8532,8 +8532,8 @@ A jump table for the options with a short description can be found at |Q_op|.
85328532
windows.
85338533
The number N must be between 1 and 9. See |hl-User1..9|
85348534
*stl-%@*
8535-
@ - Insert a line break (for the |tabpanel| or when the status line
8536-
'statuslineopt' has a "maxheight" value greater than 1).
8535+
@ - Inserts a newline. This only takes effect when the "maxheight"
8536+
value of 'statuslineopt' is greater than 1, or for |tabpanel|.
85378537

85388538
When displaying a flag, Vim removes the leading comma, if any, when
85398539
that flag comes right after plaintext. This will make a nice display
@@ -8594,31 +8594,48 @@ A jump table for the options with a short description can be found at |Q_op|.
85948594
<
85958595
*'statuslineopt'* *'stlo'*
85968596
'statuslineopt' 'stlo' string (default "")
8597-
global
8597+
global or local to window |global-local|
85988598
{not available when compiled without the |+statusline|
85998599
feature}
86008600
Optional settings for |status-line|. It can consist of the following
86018601
items. All are optional. Items must be separated by a comma.
86028602

8603-
maxheight:{n} Set the maximum status line height to {n}.
8604-
{n} must be 1 or greater.
8605-
If not present, 1 is used.
8606-
Check whether {n} is applicable to all windows
8607-
on all tab pages, and if not, set it to the
8608-
closest possible value.
8609-
The option value is updated to the actual
8610-
applied value. For example, setting
8611-
maxheight:999 may result in a smaller value
8612-
depending on the available space.
8613-
When {n} is set to 2 or more, you can use "@"
8614-
in 'statusline' to display information on
8615-
multiple lines in the status line.
8616-
See |stl-%@|.
8617-
8603+
fixedheight Fix the status line height to "maxheight".
8604+
Without this, the height varies from 1 to
8605+
"maxheight" based on the number of newline
8606+
|stl-%@| in 'statusline'.
8607+
8608+
maxheight:{n} Set the maximum status line height to {n}.
8609+
{n} must be 1 or greater. If not specified, the
8610+
height is 1.
8611+
When {n} is 2 or more, you can use newline
8612+
|stl-%@| in 'statusline' to display information on
8613+
multiple lines.
8614+
8615+
If {n} cannot be set due to insufficient window
8616+
height or other constraints, a best-effort
8617+
approach will be taken to set the closest possible
8618+
value that does not exceed {n}. No error will be
8619+
shown even if the setting cannot be changed.
8620+
8621+
For the global value, a value applicable to all
8622+
windows on all tab pages is used. For a
8623+
window-local value, a value applicable to that
8624+
window is used.
8625+
Note: When the applied value differs from {n}, the
8626+
option is updated to reflect it.
8627+
Example of updated options: >vim
8628+
:set statuslineopt=maxheight:999,fixedheight
8629+
" Only 20 lines could be applied, so
8630+
" maxheight is updated to 20.
8631+
:set statuslineopt?
8632+
statuslineopt=maxheight:20,fixedheight
8633+
<
86188634
Examples: >
8635+
:set statuslineopt=fixedheight
86198636
:set stlo=
8620-
:set stlo=maxheight:2
8621-
:set stlo+=maxheight:3
8637+
:set stlo=maxheight:2,fixedheight
8638+
:set stlo-=fixedheight
86228639
<
86238640
*'suffixes'* *'su'*
86248641
'suffixes' 'su' string (default ".bak,~,.o,.h,.info,.swp,.obj")
@@ -8805,7 +8822,7 @@ A jump table for the options with a short description can be found at |Q_op|.
88058822

88068823
You can use |g:actual_curtabpage| within a function assigned to
88078824
tabpanel. |g:actual_curtabpage| represents current tab's label number.
8808-
You can use "%@" or "\n" to insert a new line: >
8825+
You can use "%@" or "\n" to insert a newline: >
88098826
88108827
set tabpanel=%!TabPanel()
88118828
function! TabPanel() abort
@@ -9096,6 +9113,24 @@ A jump table for the options with a short description can be found at |Q_op|.
90969113
<
90979114
NOTE: This option is reset when 'compatible' is set.
90989115

9116+
*'termresize'* *'trz'*
9117+
'termresize' 'trz' string (default "")
9118+
global
9119+
{only available in Unix, does not work in the GUI}
9120+
Determines the method to use for detecting window resize events,
9121+
possible values are:
9122+
"sigwinch": Use the SIGWINCH signal.
9123+
"inband": Receive resize events from the terminal via escape
9124+
sequences (recommended if supported by terminal).
9125+
"": Automatically choose depending on terminal.
9126+
9127+
The SIGWINCH handler is always available. If set to "inband" and the
9128+
terminal does not support in-band window resize events, then the
9129+
SIGWINCH handler will be used instead as a fallback. If set to ""
9130+
(empty option), then "inband" will be used if Vim detects that the
9131+
terminal supports it, otherwise "sigwinch".
9132+
9133+
90999134
*'termsync'* *'tsy'*
91009135
'termsync' 'tsy' boolean (default off)
91019136
global

0 commit comments

Comments
 (0)