Skip to content

Commit c215956

Browse files
committed
Update by original
1 parent 1283610 commit c215956

2 files changed

Lines changed: 99 additions & 10 deletions

File tree

doc/options.jax

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

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -4787,7 +4787,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
47874787
このオプションは、様々な対象に対する強調表示モードを設定する。文字の組
47884788
をコンマ区切りのリストとして指定する。1番目の文字は適用される対象を指
47894789
定し、2番目の文字はその対象に適用するモードを指定する。
4790-
対象は以下の通りである
4790+
対象は以下の通りである:
47914791
|hl-SpecialKey| 8 ":map" でリスト表示されるメタキーと特殊キー
47924792
|hl-EndOfBuffer| ~ バッファの最後の行以降の行
47934793
|hl-NonText| @ ウィンドウ末尾の '@' と 'showbreak' によって
@@ -4851,6 +4851,10 @@ Note 1番目の形式では、行全体がオプション指定に使われる
48514851
|hl-PmenuShadow| H ポップアップメニューの影
48524852
|hl-PreInsert| I "preinsert" が 'completeopt' にあるときに挿入され
48534853
るテキスト
4854+
|hl-Normal| ( ウィンドウカラー ('wincolor' オプションより優先さ
4855+
れる)
4856+
4857+
Note デフォルトでは、対象 '(' は設定されていないことに注意。
48544858

48554859
表示モードは以下の通りである。
48564860
r 反転 (termcapの項目 "mr" と "me")
@@ -5870,9 +5874,9 @@ Note 1番目の形式では、行全体がオプション指定に使われる
58705874
された場合は、先頭のタブには "tab" 設定が使用される。
58715875
*E1572*
58725876
これを機能させるには |lcs-tab| も設定する必要がある。
5873-
"tab:" と組み合わせることもできる。例:
5874-
`:set listchars=tab:>-,leadtab:.\ `
5875-
先頭のタブはピリオド (.) で表示され、その他のタブは
5877+
"tab:" と組み合わせることもできる。例: >
5878+
:set listchars=tab:>-,leadtab:.\
5879+
< 先頭のタブはピリオド (.) で表示され、その他のタブは
58765880
">--" で表示される。
58775881
*lcs-trail*
58785882
trail:文字 行末のスペースの表示に使われる文字。指定されないと、行
@@ -10263,8 +10267,20 @@ Note 1番目の形式では、行全体がオプション指定に使われる
1026310267
*'wincolor'* *'wcr'*
1026410268
'wincolor' 'wcr' 文字列 (既定では "")
1026510269
ウィンドウについてローカル
10270+
DEPRECATED: 可能であれば 'winhighlight' を使用すること。このオプション
10271+
は、以下のように設定することで内部的に 'winhighlight' を使用する: >vim
10272+
set winhighlight=!(:HighlightGroup
10273+
< このオプションが設定されている場合、'winhighlight' の値が変更されても、
10274+
オプションの値は更新されない。例えば、'wincolor' が "A" に設定され、
10275+
'winhighlight' が空の値に設定された場合、'wincolor' は "A" のままとな
10276+
る。また、このオプションが設定されると、'winhighlight' の既存の値は破
10277+
棄される。
10278+
1026610279
通常の色 |hl-Normal| の代わりにこのウィンドウに使用するハイライトグルー
1026710280
プ名。
10281+
その他のハイライトグループについては、'winhighlight' を参照。Note この
10282+
グループと 'winhighlight' を同時に設定することは推奨されていないことに
10283+
注意。
1026810284

1026910285
*'window'* *'wi'*
1027010286
'window' 'wi' 数値 (既定では: 画面の高さ - 1)
@@ -10325,6 +10341,36 @@ Note 1番目の形式では、行全体がオプション指定に使われる
1032510341
'winheight' はカレントウィンドウに適用される。他のウィンドウの高さの最
1032610342
小値の設定には、'winminheight' を使うこと。
1032710343

10344+
*'winhighlight'* *'whl'*
10345+
'winhighlight' 'whl' 文字列 (既定では空)
10346+
ウィンドウについてローカル
10347+
ウィンドウローカルのハイライトグループマッピング。ハイライト
10348+
|group-name| ペアのコンマ区切りのリスト "{hl-from}:{hl-to},..." で、各
10349+
{hl-from} はウィンドウ内の {hl-to} グループによって上書きされる
10350+
|highlight-groups| 項目である。{hl-from} が "Normal" の場合、常に
10351+
'highlight' の "(" (ウィンドウカラー) の値にマッピングされる。
10352+
10353+
ハイライトグループ名が "!" で始まる場合、それは 'highlight' の値にマッ
10354+
ピングされているとみなされる。例えば、以下の設定はビジュアルモードの設
10355+
定を上書きする: >vim
10356+
set winhighlight=!v:SomeHighlightGroup
10357+
< これは、対象 "v" を対象 "l" にマッピングする >vim
10358+
set winhighlight=!v:!l
10359+
<
10360+
垂直セパレーターのハイライトは、セパレータの左側のウィンドウによって決
10361+
定される。タブページの 'tabline' のハイライトは、タブページで最後に
10362+
フォーカスされていたウィンドウによって決定される。ポップアップメニュー
10363+
のハイライトは、カレントウィンドウによって決定される。メッセージ領域の
10364+
ハイライトは上書きできない。
10365+
10366+
ハイライトグループのリンクを扱う際、ハイライトグループ (リンクである場
10367+
合もある) が 'winhighlight' によって上書きされると、それにリンクしてい
10368+
るすべてのハイライトグループが影響を受ける。例えば、ハイライトグループ
10369+
C が B にリンクし、B が A にリンクしている場合 >vim
10370+
set winhighlight=B:SomeHighlightGroup
10371+
< SomeHighlightGroup はグループ B と C をオーバーライドするが、グループ
10372+
A はオーバーライドしない。
10373+
1032810374
*'winminheight'* *'wmh'*
1032910375
'winminheight' 'wmh' 数値 (既定では 1)
1033010376
グローバル

en/options.txt

Lines changed: 48 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 Mar 01
1+
*options.txt* For Vim version 9.2. Last change: 2026 Mar 02
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4810,6 +4810,9 @@ A jump table for the options with a short description can be found at |Q_op|.
48104810
|hl-PmenuBorder| j popup menu border characters
48114811
|hl-PmenuShadow| H popup menu shadow
48124812
|hl-PreInsert| I text inserted when "preinsert" is in 'completeopt'
4813+
|hl-Normal| ( Window color (supersedes 'wincolor' option)
4814+
4815+
Note that the "(" occasion is not set by default.
48134816

48144817
The display modes are:
48154818
r reverse (termcap entry "mr" and "me")
@@ -5813,9 +5816,9 @@ A jump table for the options with a short description can be found at |Q_op|.
58135816
Like |lcs-tab|, but only for leading tabs. When
58145817
omitted, the "tab" setting is used for leading tabs.
58155818
|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+
You can combine it with "tab:", for example: >
5820+
:set listchars=tab:>-,leadtab:.\
5821+
< This shows leading tabs as periods(.) and other tabs
58195822
as ">--".
58205823
*lcs-trail*
58215824
trail:c Character to show for trailing spaces. When omitted,
@@ -10246,8 +10249,19 @@ A jump table for the options with a short description can be found at |Q_op|.
1024610249
*'wincolor'* *'wcr'*
1024710250
'wincolor' 'wcr' string (default empty)
1024810251
local to window
10252+
DEPRECATED: Use 'winhighlight' if possible, this option uses
10253+
'winhighlight' internally by setting it to: >vim
10254+
set winhighlight=!(:HighlightGroup
10255+
< If this option is set and 'winhighlight' is changed, then it will not
10256+
update the option value. For example, if 'wincolor' is set to "A" and
10257+
then 'winhighlight' is to an empty value, then 'wincolor' will still
10258+
remain as "A". Additionally, the existing value in 'winhighlight' will
10259+
be discarded when this option is set.
10260+
1024910261
Highlight group name to use for this window instead of the Normal
10250-
color |hl-Normal|.
10262+
color |hl-Normal|. For other |highlight-groups|, see 'winhighlight'.
10263+
Note that it is not recommended to set this and 'winhighlight' at the
10264+
same time.
1025110265

1025210266
*'window'* *'wi'*
1025310267
'window' 'wi' number (default screen height - 1)
@@ -10306,6 +10320,35 @@ A jump table for the options with a short description can be found at |Q_op|.
1030610320
'winheight' applies to the current window. Use 'winminheight' to set
1030710321
the minimal height for other windows.
1030810322

10323+
*'winhighlight'* *'whl'*
10324+
'winhighlight' 'whl' string (default empty)
10325+
local to window
10326+
Window-local highlight group mappings. Comma-delimited list of
10327+
highlight |group-name| pairs "{hl-from}:{hl-to},..." where each
10328+
{hl-from} is a |highlight-groups| item to be overridden by {hl-to}
10329+
group in the window. If {hl-from} is "Normal", then it will always
10330+
map to the "(" (window color) value in 'highlight'.
10331+
10332+
If a highlight group name starts with "!", then it is assumed to map
10333+
to a value in 'highlight'. For example, this will override the
10334+
visual mode setting: >vim
10335+
set winhighlight=!v:SomeHighlightGroup
10336+
< This will map the occasion "v" to occasion "l" >vim
10337+
set winhighlight=!v:!l
10338+
<
10339+
Highlights of vertical separators are determined by the window to the
10340+
left of the separator. The 'tabline' highlight of a tabpage is
10341+
decided by the last-focused window of the tabpage. Highlights of
10342+
the popupmenu are determined by the current window. Highlights in the
10343+
message area cannot be overridden.
10344+
10345+
When handling highlight group links, if a highlight group (which may
10346+
be a link as well) is overridden by 'winhighlight', then all highlight
10347+
groups that link to it will be affected. For example, if highlight
10348+
group C links to B which links to A, then >vim
10349+
set winhighlight=B:SomeHighlightGroup
10350+
< will make SomeHighlightGroup override groups B and C, but not A.
10351+
1030910352
*'winminheight'* *'wmh'*
1031010353
'winminheight' 'wmh' number (default 1)
1031110354
global

0 commit comments

Comments
 (0)