Skip to content

Commit b5e9f30

Browse files
committed
Update options.{txt,jax}
1 parent 6a7edaf commit b5e9f30

File tree

2 files changed

+146
-89
lines changed

2 files changed

+146
-89
lines changed

doc/options.jax

Lines changed: 70 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2024 Dec 28
1+
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jan 31
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1059,7 +1059,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
10591059
するために使われる。もしも返された RGB の値が dark/light であり、
10601060
'background' が dark/light でなかったなら、'background' が設定されて画
10611061
面が再描画される。これは副作用があるかもしれない。問題があると疑わしき
1062-
場合は、.vimrc の t_BG を空にしよう。|t_RB| へのレスポンスは
1062+
場合は、.vimrc の 't_BG' を空にしよう。|t_RB| へのレスポンスは
10631063
|v:termrbgresp| の中に見つけることができる。
10641064

10651065
GUIを開始したとき、'background' の既定値は "light" である。値がファイ
@@ -2208,6 +2208,14 @@ Note 1番目の形式では、行全体がオプション指定に使われる
22082208
プしたり、正確なシーケンスが入力されていなくてもマッチを見
22092209
つけることができる。
22102210

2211+
nosort "fuzzy" が有効になっている場合、ファジースコアに基づく補完
2212+
候補の並べ替えを無効する。候補は元の順序で表示される。
2213+
2214+
preinsert
2215+
現在の補完リーダーの一部ではない最初の候補単語の部分を事前
2216+
に挿入し、|hl-ComplMatchIns| ハイライトグループを使用す
2217+
る。"fuzzy" も含まれている場合は機能しない。
2218+
22112219
*'completepopup'* *'cpp'*
22122220
'completepopup' 'cpp' 字列 (既定では空)
22132221
グローバル
@@ -2900,11 +2908,19 @@ Note 1番目の形式では、行全体がオプション指定に使われる
29002908
差分モード用のオプション設定。値は、以下のキーワードのコンマ区切りのリ
29012909
ストである。指定しないものがあってもよい。
29022910

2903-
filler 片方のウィンドウ内のテキストのある位置に行が挿
2904-
入されていたときに、ウィンドウのスクロールを同
2905-
期させるために、埋め立て用の行を表示する。ウィ
2906-
ンドウが隣り合っていて、オプション
2907-
'scrollbind' がオンのときには大抵便利である。
2911+
algorithm:{text} 指定した差分アルゴリズムを内部diffエンジンで
2912+
使用する。現在サポートされているアルゴリズムは:
2913+
myers デフォルトのアルゴリズム
2914+
minimal 可能な限り小さな差分を生成するため
2915+
に余分な時間を費やす
2916+
patience patience差分アルゴリズム
2917+
histogram histogram差分アルゴリズム
2918+
2919+
closeoff 'diff' が設定されたウィンドウが閉じられ、同じ
2920+
タブページに 'diff' が設定されたウィンドウが
2921+
1 つだけ残っているとき、そのウィンドウで
2922+
`:diffoff` を実行する。これは `:diffsplit` コ
2923+
マンドを取り消す。
29082924

29092925
context:{n} 変更のあった行の上下を {n} 行だけ折り畳まずに
29102926
表示 (コンテキストの表示) する。指定されないと、
@@ -2915,6 +2931,23 @@ Note 1番目の形式では、行全体がオプション指定に使われる
29152931
は、非常に大きな値 (999999) に設定する。
29162932
|fold-diff| を参照。
29172933

2934+
filler 片方のウィンドウ内のテキストのある位置に行が挿
2935+
入されていたときに、ウィンドウのスクロールを同
2936+
期させるために、埋め立て用の行を表示する。ウィ
2937+
ンドウが隣り合っていて、オプション
2938+
'scrollbind' がオンのときには大抵便利である。
2939+
2940+
foldcolumn:{n} 差分モードの開始時にオプション 'foldcolumn' を
2941+
{n}に設定する。
2942+
2943+
followwrap 'wrap' オプションにそのまま従う。
2944+
2945+
horizontal (他に明示的に指定されない限り)ウィンドウを水平
2946+
分割して差分モードを開始する。
2947+
2948+
hiddenoff バッファが隠れバッファになるときに差分モードを
2949+
使用しない。
2950+
29182951
iblank 行がすべて空白の場合は変更を無視する。
29192952
'diffexpr' が空の場合、"diff" コマンドに "-B"
29202953
フラグを追加する。これが正確に何をするかについ
@@ -2928,6 +2961,17 @@ Note 1番目の形式では、行全体がオプション指定に使われる
29282961
'diffexpr' が空なら、コマンド "diff" にフラグ
29292962
"-i" を追加する。
29302963

2964+
indent-heuristic
2965+
内部diffライブラリのインデントヒューリスティッ
2966+
クを使用する。
2967+
2968+
internal 内部diffライブラリを使用する。'diffexpr' が設
2969+
定されている場合は無視される。 *E960*
2970+
バッファを書き込むときにメモリが不足すると、こ
2971+
の項目はそのバッファに関連する差分に対して無視
2972+
される。これがいつ発生するかを確認するために
2973+
'verbose' オプションを設定すること。
2974+
29312975
iwhite 空白の数の違いを無視する。オプション
29322976
'diffexpr' が空なら、コマンド "diff" にフラグ
29332977
"-b" を追加する。これが正確には何を指定してい
@@ -2946,45 +2990,17 @@ Note 1番目の形式では、行全体がオプション指定に使われる
29462990
る。これが正確に何をするかについては、"diff"
29472991
コマンドのドキュメントをチェックすること。
29482992

2949-
horizontal (他に明示的に指定されない限り)ウィンドウを水平
2950-
分割して差分モードを開始する。
2993+
linematch:{n} バッファ間で最も類似している行間の変更を揃えて
2994+
マークする。差分ハンクの合計行数が {n} を超え
2995+
ると非常に大きな差分ハンクでは顕著な遅延が発生
2996+
するため、行は揃えられない。適切な設定
2997+
は"linematch:60" である。これによりそれぞれ 30
2998+
行の2 バッファ差分ハンク、またはそれぞれ 20 行
2999+
の 3 バッファ差分ハンクの揃えが可能になる。
29513000

29523001
vertical (他に明示的に指定されない限り)ウィンドウを垂直
29533002
分割して差分モードを開始する。
29543003

2955-
closeoff 'diff' が設定されたウィンドウが閉じられ、同じ
2956-
タブページに 'diff' が設定されたウィンドウが
2957-
1 つだけ残っているとき、そのウィンドウで
2958-
`:diffoff` を実行する。これは `:diffsplit` コ
2959-
マンドを取り消す。
2960-
2961-
hiddenoff バッファが隠れバッファになるときに差分モードを
2962-
使用しない。
2963-
2964-
foldcolumn:{n} 差分モードの開始時にオプション 'foldcolumn' を
2965-
{n}に設定する。
2966-
2967-
followwrap 'wrap' オプションにそのまま従う。
2968-
2969-
internal 内部diffライブラリを使用する。'diffexpr' が設
2970-
定されている場合は無視される。 *E960*
2971-
バッファを書き込むときにメモリが不足すると、こ
2972-
の項目はそのバッファに関連する差分に対して無視
2973-
される。これがいつ発生するかを確認するために
2974-
'verbose' オプションを設定すること。
2975-
2976-
indent-heuristic
2977-
内部diffライブラリのインデントヒューリスティッ
2978-
クを使用する。
2979-
2980-
algorithm:{text} 指定した差分アルゴリズムを内部diffエンジンで
2981-
使用する。現在サポートされているアルゴリズムは:
2982-
myers デフォルトのアルゴリズム
2983-
minimal 可能な限り小さな差分を生成するため
2984-
に余分な時間を費やす
2985-
patience patience差分アルゴリズム
2986-
histogram histogram差分アルゴリズム
2987-
29883004
例: >
29893005
:set diffopt=internal,filler,context:4
29903006
:set diffopt=
@@ -4379,7 +4395,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
43794395
#:TabLineSel,_:TabLineFill,!:CursorColumn,
43804396
.:CursorLine,o:ColorColumn,q:QuickFixLine,
43814397
z:StatusLineTerm,Z:StatusLineTermNC,
4382-
g:MsgArea")
4398+
g:MsgArea,h:ComplMatchIns")
43834399
グローバル
43844400
このオプションは、様々な対象に対する強調表示モードを設定する。文字の組
43854401
をコンマ区切りのリストとして指定する。1番目の文字は適用される対象を指
@@ -4399,6 +4415,7 @@ Note 1番目の形式では、行全体がオプション指定に使われる
43994415
|hl-MoreMsg| m 「継続」プロンプト |more-prompt|
44004416
|hl-ModeMsg| M モード表示 (例えば "-- INSERT --")
44014417
|hl-MsgArea| g |Command-line| とメッセージエリア
4418+
|hl-ComplMatchIns| h 現在挿入されている補完にマッチするテキスト
44024419
|hl-LineNr| n ":number" と ":#" コマンドでの行番号と、'number'
44034420
か 'relativenumber' がオンに設定されているときの行
44044421
番号。
@@ -8522,13 +8539,22 @@ Note 1番目の形式では、行全体がオプション指定に使われる
85228539
がこのように設定する必要がある。
85238540

85248541
*'termguicolors'* *'tgc'* *'notermguicolors'* *'notgc'* *E954*
8525-
'termguicolors' 'tgc' 切替 (既定ではオフ)
8542+
'termguicolors' 'tgc' 切替 (Vim が対応端末で実行されていることを検出しな
8543+
い限り、既定ではオフ)
85268544
グローバル
85278545
{|+termguicolors| 機能付きでコンパイルされたときのみ有
85288546
効}
85298547
オンのとき、|highlight-guifg| と |highlight-guibg| がターミナル内で使
85308548
われる(24ビットカラー)。
85318549

8550+
Vim が対応端末で実行されていることを検出すると自動的に有効になる (端末
8551+
が RGB terminfo 機能をサポートしている場合、または端末でサポートされて
8552+
いる色数 |t_Co| が 0x1000000 の場合、例: $TERM=xterm-direct)。端末のク
8553+
エリが非同期でおこなわれる性質上、これを自動的に有効にすると目立つこと
8554+
がある。明示的に無効にするには、 >
8555+
set notermguicolors
8556+
< を使用する。
8557+
85328558
ISO-8613-3 互換なターミナルが必要。このオプションを設定しても機能しな
85338559
い (色が UI に付かない) 場合は、|xterm-true-color| を読むと助けになる
85348560
かもしれない。

en/options.txt

Lines changed: 76 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2024 Dec 28
1+
*options.txt* For Vim version 9.1. Last change: 2025 Jan 31
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1033,7 +1033,7 @@ A jump table for the options with a short description can be found at |Q_op|.
10331033
When the |t_RB| option is set, Vim will use it to request the background
10341034
color from the terminal. If the returned RGB value is dark/light and
10351035
'background' is not dark/light, 'background' will be set and the
1036-
screen is redrawn. This may have side effects, make t_BG empty in
1036+
screen is redrawn. This may have side effects, make |t_RB| empty in
10371037
your .vimrc if you suspect this problem. The response to |t_RB| can
10381038
be found in |v:termrbgresp|.
10391039

@@ -2164,6 +2164,16 @@ A jump table for the options with a short description can be found at |Q_op|.
21642164
characters can be skipped and matches can be found even
21652165
if the exact sequence is not typed.
21662166

2167+
nosort Disable sorting of completion candidates based on fuzzy
2168+
scores when "fuzzy" is enabled. Candidates will appear
2169+
in their original order.
2170+
2171+
preinsert
2172+
Preinsert the portion of the first candidate word that is
2173+
not part of the current completion leader and using the
2174+
|hl-ComplMatchIns| highlight group. Does not work when
2175+
"fuzzy" is also included.
2176+
21672177
*'completepopup'* *'cpp'*
21682178
'completepopup' 'cpp' string (default empty)
21692179
global
@@ -2880,11 +2890,20 @@ A jump table for the options with a short description can be found at |Q_op|.
28802890
Option settings for diff mode. It can consist of the following items.
28812891
All are optional. Items must be separated by a comma.
28822892

2883-
filler Show filler lines, to keep the text
2884-
synchronized with a window that has inserted
2885-
lines at the same position. Mostly useful
2886-
when windows are side-by-side and 'scrollbind'
2887-
is set.
2893+
algorithm:{text} Use the specified diff algorithm with the
2894+
internal diff engine. Currently supported
2895+
algorithms are:
2896+
myers the default algorithm
2897+
minimal spend extra time to generate the
2898+
smallest possible diff
2899+
patience patience diff algorithm
2900+
histogram histogram diff algorithm
2901+
2902+
closeoff When a window is closed where 'diff' is set
2903+
and there is only one window remaining in the
2904+
same tab page with 'diff' set, execute
2905+
`:diffoff` in that window. This undoes a
2906+
`:diffsplit` command.
28882907

28892908
context:{n} Use a context of {n} lines between a change
28902909
and a fold that contains unchanged lines.
@@ -2895,6 +2914,23 @@ A jump table for the options with a short description can be found at |Q_op|.
28952914
value (999999) to disable folding completely.
28962915
See |fold-diff|.
28972916

2917+
filler Show filler lines, to keep the text
2918+
synchronized with a window that has inserted
2919+
lines at the same position. Mostly useful
2920+
when windows are side-by-side and 'scrollbind'
2921+
is set.
2922+
2923+
foldcolumn:{n} Set the 'foldcolumn' option to {n} when
2924+
starting diff mode. Without this 2 is used.
2925+
2926+
followwrap Follow the 'wrap' option and leave as it is.
2927+
2928+
horizontal Start diff mode with horizontal splits (unless
2929+
explicitly specified otherwise).
2930+
2931+
hiddenoff Do not use diff mode for a buffer when it
2932+
becomes hidden.
2933+
28982934
iblank Ignore changes where lines are all blank. Adds
28992935
the "-B" flag to the "diff" command if
29002936
'diffexpr' is empty. Check the documentation
@@ -2908,6 +2944,17 @@ A jump table for the options with a short description can be found at |Q_op|.
29082944
are considered the same. Adds the "-i" flag
29092945
to the "diff" command if 'diffexpr' is empty.
29102946

2947+
indent-heuristic
2948+
Use the indent heuristic for the internal
2949+
diff library.
2950+
2951+
internal Use the internal diff library. This is
2952+
ignored when 'diffexpr' is set. *E960*
2953+
When running out of memory when writing a
2954+
buffer this item will be ignored for diffs
2955+
involving that buffer. Set the 'verbose'
2956+
option to see when this happens.
2957+
29112958
iwhite Ignore changes in amount of white space. Adds
29122959
the "-b" flag to the "diff" command if
29132960
'diffexpr' is empty. Check the documentation
@@ -2927,46 +2974,19 @@ A jump table for the options with a short description can be found at |Q_op|.
29272974
of the "diff" command for what this does
29282975
exactly.
29292976

2930-
horizontal Start diff mode with horizontal splits (unless
2931-
explicitly specified otherwise).
2977+
linematch:{n} Align and mark changes between the most
2978+
similar lines between the buffers. When the
2979+
total number of lines in the diff hunk exceeds
2980+
{n}, the lines will not be aligned because for
2981+
very large diff hunks there will be a
2982+
noticeable lag. A reasonable setting is
2983+
"linematch:60", as this will enable alignment
2984+
for a 2 buffer diff hunk of 30 lines each,
2985+
or a 3 buffer diff hunk of 20 lines each.
29322986

29332987
vertical Start diff mode with vertical splits (unless
29342988
explicitly specified otherwise).
29352989

2936-
closeoff When a window is closed where 'diff' is set
2937-
and there is only one window remaining in the
2938-
same tab page with 'diff' set, execute
2939-
`:diffoff` in that window. This undoes a
2940-
`:diffsplit` command.
2941-
2942-
hiddenoff Do not use diff mode for a buffer when it
2943-
becomes hidden.
2944-
2945-
foldcolumn:{n} Set the 'foldcolumn' option to {n} when
2946-
starting diff mode. Without this 2 is used.
2947-
2948-
followwrap Follow the 'wrap' option and leave as it is.
2949-
2950-
internal Use the internal diff library. This is
2951-
ignored when 'diffexpr' is set. *E960*
2952-
When running out of memory when writing a
2953-
buffer this item will be ignored for diffs
2954-
involving that buffer. Set the 'verbose'
2955-
option to see when this happens.
2956-
2957-
indent-heuristic
2958-
Use the indent heuristic for the internal
2959-
diff library.
2960-
2961-
algorithm:{text} Use the specified diff algorithm with the
2962-
internal diff engine. Currently supported
2963-
algorithms are:
2964-
myers the default algorithm
2965-
minimal spend extra time to generate the
2966-
smallest possible diff
2967-
patience patience diff algorithm
2968-
histogram histogram diff algorithm
2969-
29702990
Examples: >
29712991
:set diffopt=internal,filler,context:4
29722992
:set diffopt=
@@ -4348,7 +4368,7 @@ A jump table for the options with a short description can be found at |Q_op|.
43484368
#:TabLineSel,_:TabLineFill,!:CursorColumn,
43494369
.:CursorLine,o:ColorColumn,q:QuickFixLine,
43504370
z:StatusLineTerm,Z:StatusLineTermNC,
4351-
g:MsgArea")
4371+
g:MsgArea,h:ComplMatchIns")
43524372
global
43534373
This option can be used to set highlighting mode for various
43544374
occasions. It is a comma-separated list of character pairs. The
@@ -4368,6 +4388,7 @@ A jump table for the options with a short description can be found at |Q_op|.
43684388
|hl-MoreMsg| m |more-prompt|
43694389
|hl-ModeMsg| M Mode (e.g., "-- INSERT --")
43704390
|hl-MsgArea| g |Command-line| and message area
4391+
|hl-ComplMatchIns| h matched text of currently inserted completion
43714392
|hl-LineNr| n line number for ":number" and ":#" commands, and
43724393
when 'number' or 'relativenumber' option is set.
43734394
|hl-LineNrAbove| a line number above the cursor for when the
@@ -8479,13 +8500,23 @@ A jump table for the options with a short description can be found at |Q_op|.
84798500
< You need to do this when your system has no locale support for UTF-8.
84808501

84818502
*'termguicolors'* *'tgc'* *'notermguicolors'* *'notgc'* *E954*
8482-
'termguicolors' 'tgc' boolean (default off)
8503+
'termguicolors' 'tgc' boolean (default off unless Vim detects that it runs
8504+
in a capable terminal)
84838505
global
84848506
{not available when compiled without the
84858507
|+termguicolors| feature}
84868508
When on, uses |highlight-guifg| and |highlight-guibg| attributes in
84878509
the terminal (thus using 24-bit color).
84888510

8511+
Will automatically be enabled, if Vim detects that it runs in a
8512+
capable terminal (when the terminal supports the RGB terminfo
8513+
capability or when the number of colors |t_Co| supported by the
8514+
terminal is 0x1000000, e.g. with $TERM=xterm-direct). Due to the async
8515+
nature of querying the terminal, enabling this automatically is
8516+
noticable. Use >
8517+
set notermguicolors
8518+
< to explicitly disable.
8519+
84898520
Requires a ISO-8613-3 compatible terminal. If setting this option
84908521
does not work (produces a colorless UI) reading |xterm-true-color|
84918522
might help.

0 commit comments

Comments
 (0)