Skip to content

Commit 6ebe419

Browse files
committed
Update original
1 parent ffd29f4 commit 6ebe419

2 files changed

Lines changed: 91 additions & 11 deletions

File tree

doc/options.jax

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

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -5864,6 +5864,16 @@ Note 1番目の形式では、行全体がオプション指定に使われる
58645864
---+---+--XXX ~
58655865
ここで "XXX" はこの行の最初の空白ではない文字を意味す
58665866
る。
5867+
*lcs-leadtab*
5868+
leadtab:xy[z]
5869+
|lcs-tab| と同様だが、先頭のタブにのみ適用される。省略
5870+
された場合は、先頭のタブには "tab" 設定が使用される。
5871+
*E1572*
5872+
これを機能させるには |lcs-tab| も設定する必要がある。
5873+
"tab:" と組み合わせることもできる。例:
5874+
`:set listchars=tab:>-,leadtab:.\ `
5875+
先頭のタブはピリオド (.) で表示され、その他のタブは
5876+
">--" で表示される。
58675877
*lcs-trail*
58685878
trail:文字 行末のスペースの表示に使われる文字。指定されないと、行
58695879
末のスペースは空白のまま。行末のスペースでは "space"
@@ -8539,6 +8549,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
85398549
いは非カレントウィンドウのステータス行にはハイライトグループ
85408550
StatusLineNC が適用されることである。数 N は 1 以上 9 以下であ
85418551
る。|hl-User1..9| を参照。
8552+
*stl-%@*
8553+
@ - 改行を挿入する (|tabpanel| の場合、またはステータスライン
8554+
'statuslineopt' の "maxheight" 値が 1 より大きい場合)。
85428555

85438556
フラグを表示するとき、そのフラグがプレーンテキストの直後にあるな
85448557
ら、その先頭にコンマがある場合は削除される。そうすることによって以下の
@@ -8600,6 +8613,33 @@ Note 1番目の形式では、行全体がオプション指定に使われる
86008613
:function VarExists(var, val)
86018614
: if exists(a:var) | return a:val | else | return '' | endif
86028615
:endfunction
8616+
<
8617+
*'statuslineopt'* *'stlo'*
8618+
'statuslineopt' 'stlo' 文字列 (既定では "")
8619+
グローバル
8620+
{|+statusline| 機能付きでコンパイルされたときのみ有効}
8621+
|status-line| のオプション設定。以下の項目から構成される。すべて任意で
8622+
ある。項目はカンマで区切る必要がある。
8623+
8624+
maxheight:{n} ステータスラインの最大の高さを {n} に設定する。
8625+
{n} は 1 以上である必要がある。
8626+
指定がない場合は 1 が使用される。
8627+
{n} がすべてのタブページのすべてのウィンドウに
8628+
適用可能かどうかを確認し、適用できない場合は、
8629+
可能な限り最も近い値に設定する。
8630+
オプションの値は実際に適用された値に更新され
8631+
る。例えば、maxheight:999 と設定した場合、利用
8632+
可能なスペースによっては値が小さくなる可能性が
8633+
ある。
8634+
{n} を 2 以上に設定すると、'statusline' で "@"
8635+
を使用して、ステータスラインに複数行の情報を表
8636+
示できる。
8637+
|stl-%@| を参照。
8638+
8639+
例: >
8640+
:set stlo=
8641+
:set stlo=maxheight:2
8642+
:set stlo+=maxheight:3
86038643
<
86048644
*'suffixes'* *'su'*
86058645
'suffixes' 'su' 文字列 (既定では ".bak,~,.o,.h,.info,.swp,.obj")
@@ -8789,12 +8829,12 @@ Note 1番目の形式では、行全体がオプション指定に使われる
87898829
ない。
87908830

87918831
|g:actual_curtabpage| は、タブパネルに割り当てられた関数内で使用でき
8792-
る。|g:actual_curtabpage| はカレントタブページのラベル番号を表す。オプ
8793-
ション値には、改行を強制するために "\n" を含めることができる: >
8832+
る。|g:actual_curtabpage| はカレントタブページのラベル番号を表す。
8833+
新しい行を挿入するには、"%@" または "\n" を使用できる: >
87948834

87958835
set tabpanel=%!TabPanel()
87968836
function! TabPanel() abort
8797-
return printf("(%2d)\n %%f", g:actual_curtabpage)
8837+
return "(" .. g:actual_curtabpage .. ")%@ %f"
87988838
endfunction
87998839
<
88008840
結果は以下の通り:
@@ -8808,8 +8848,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
88088848
| |
88098849
| |
88108850
<
8811-
Note: "\n" の使用は実験的なものと見なされており、将来変更される可能性
8812-
がある。代わりに %-アトムが使用されるかもしれない
8851+
Note: "\n" の使用は実験的であり非推奨である。代わりに |stl-%@| アトム
8852+
を使用すること
88138853

88148854
*'tabpanelopt'* *'tplo'*
88158855
'tabpanelopt' 'tplo' 文字列 (既定では "")

en/options.txt

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.2. Last change: 2026 Feb 25
1+
*options.txt* For Vim version 9.2. Last change: 2026 Mar 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5808,6 +5808,15 @@ A jump table for the options with a short description can be found at |Q_op|.
58085808
---+---+--XXX ~
58095809
Where "XXX" denotes the first non-blank characters in
58105810
the line.
5811+
*lcs-leadtab*
5812+
leadtab:xy[z]
5813+
Like |lcs-tab|, but only for leading tabs. When
5814+
omitted, the "tab" setting is used for leading tabs.
5815+
|lcs-tab| must also be set for this to work. *E1572*
5816+
You can combine it with "tab:", for example:
5817+
`:set listchars=tab:>-,leadtab:.\ `
5818+
This shows leading tabs as periods(.) and other tabs
5819+
as ">--".
58115820
*lcs-trail*
58125821
trail:c Character to show for trailing spaces. When omitted,
58135822
trailing spaces are blank. Overrides the "space" and
@@ -8519,6 +8528,9 @@ A jump table for the options with a short description can be found at |Q_op|.
85198528
applied to StatusLineNC for the statusline of non-current
85208529
windows.
85218530
The number N must be between 1 and 9. See |hl-User1..9|
8531+
*stl-%@*
8532+
@ - Insert a line break (for the |tabpanel| or when the status line
8533+
'statuslineopt' has a "maxheight" value greater than 1).
85228534

85238535
When displaying a flag, Vim removes the leading comma, if any, when
85248536
that flag comes right after plaintext. This will make a nice display
@@ -8576,6 +8588,34 @@ A jump table for the options with a short description can be found at |Q_op|.
85768588
:function VarExists(var, val)
85778589
: if exists(a:var) | return a:val | else | return '' | endif
85788590
:endfunction
8591+
<
8592+
*'statuslineopt'* *'stlo'*
8593+
'statuslineopt' 'stlo' string (default "")
8594+
global
8595+
{not available when compiled without the |+statusline|
8596+
feature}
8597+
Optional settings for |status-line|. It can consist of the following
8598+
items. All are optional. Items must be separated by a comma.
8599+
8600+
maxheight:{n} Set the maximum status line height to {n}.
8601+
{n} must be 1 or greater.
8602+
If not present, 1 is used.
8603+
Check whether {n} is applicable to all windows
8604+
on all tab pages, and if not, set it to the
8605+
closest possible value.
8606+
The option value is updated to the actual
8607+
applied value. For example, setting
8608+
maxheight:999 may result in a smaller value
8609+
depending on the available space.
8610+
When {n} is set to 2 or more, you can use "@"
8611+
in 'statusline' to display information on
8612+
multiple lines in the status line.
8613+
See |stl-%@|.
8614+
8615+
Examples: >
8616+
:set stlo=
8617+
:set stlo=maxheight:2
8618+
:set stlo+=maxheight:3
85798619
<
85808620
*'suffixes'* *'su'*
85818621
'suffixes' 'su' string (default ".bak,~,.o,.h,.info,.swp,.obj")
@@ -8762,11 +8802,11 @@ A jump table for the options with a short description can be found at |Q_op|.
87628802

87638803
You can use |g:actual_curtabpage| within a function assigned to
87648804
tabpanel. |g:actual_curtabpage| represents current tab's label number.
8765-
The option value can contain "\n" to force line breaks: >
8805+
You can use "%@" or "\n" to insert a new line: >
87668806
87678807
set tabpanel=%!TabPanel()
87688808
function! TabPanel() abort
8769-
return printf("(%2d)\n %%f", g:actual_curtabpage)
8809+
return "(" .. g:actual_curtabpage .. ")%@ %f"
87708810
endfunction
87718811
<
87728812
The result is:
@@ -8780,8 +8820,8 @@ A jump table for the options with a short description can be found at |Q_op|.
87808820
| |
87818821
| |
87828822
<
8783-
Note: using "\n" is considered experimental and may change in the
8784-
future; a %-atom may be used instead.
8823+
Note: using "\n" is considered experimental and deprecated, prefer
8824+
the |stl-%@| atom instead.
87858825

87868826
*'tabpanelopt'* *'tplo'*
87878827
'tabpanelopt' 'tplo' string (default "")

0 commit comments

Comments
 (0)