Skip to content

Commit eb1788c

Browse files
committed
Update options.{txt,jax}
1 parent a65bc81 commit eb1788c

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

doc/options.jax

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jul 13
1+
*options.txt* For Vim バージョン 9.1. Last change: 2025 Jul 15
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -3009,6 +3009,26 @@ Note 1番目の形式では、行全体がオプション指定に使われる
30093009
カレントウィンドウをファイル間の差異を示すウィンドウのグループに組み入
30103010
れる。|vimdiff| を参照。
30113011

3012+
*'dia'* *'diffanchors'* *E1549*
3013+
'diffanchors' 'dia' 文字列 (既定では "")
3014+
グローバル/バッファについてローカル |global-local|
3015+
各バッファ内の {address} をコンマ区切りでリストする。これらは比較の際
3016+
にアンカーとして扱われる。最終行の1行目以降に "$+1" と指定することは有
3017+
効である。このオプションでは "%" は使用できない。各バッファには最大 20
3018+
個のアンカーを設定できる。
3019+
3020+
各アンカー行はバッファを分割する (分割はアンカー行の上で行われる)。各
3021+
部分は個別に比較され、最終結果が結合される。複数の {address} が指定さ
3022+
れた場合、アンカーは行番号で内部的にソートされる。バッファローカルなオ
3023+
プションを使用する場合、各バッファには同じ数のアンカーが必要である (余
3024+
分なアンカーは無視される)。このオプションは、'diffopt' に "anchor" が
3025+
設定されている場合にのみ使用される。詳細と例については |diff-anchors|
3026+
を参照。
3027+
*E1550*
3028+
{address} の一部が各バッファ内の行に解決されない場合 (例えば、何にも
3029+
マッチしないパターン検索)、どのアンカーも使用されない。
3030+
3031+
30123032
*'dex'* *'diffexpr'*
30133033
'diffexpr' 'dex' 文字列 (既定では "")
30143034
グローバル
@@ -3034,6 +3054,10 @@ Note 1番目の形式では、行全体がオプション指定に使われる
30343054
patience patience 差分アルゴリズム
30353055
histogram histogram 差分アルゴリズム
30363056

3057+
anchor 'diffanchors' が設定されている場合、各バッファ
3058+
内の特定の行を互いに揃えてアンカーする。
3059+
|diff-anchors| を参照。
3060+
30373061
closeoff 'diff' が設定されたウィンドウが閉じられ、同じ
30383062
タブページに 'diff' が設定されたウィンドウが
30393063
1 つだけ残っているとき、そのウィンドウで
@@ -3132,6 +3156,8 @@ Note 1番目の形式では、行全体がオプション指定に使われる
31323156
"linematch:60" である。これによりそれぞれ 30
31333157
行の 2 バッファ差分ハンク、またはそれぞれ 20
31343158
行の 3 バッファ差分ハンクの揃えが可能になる。
3159+
これを設定すると、暗黙的に "filler" が設定され
3160+
る。
31353161

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

en/options.txt

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 9.1. Last change: 2025 Jul 13
1+
*options.txt* For Vim version 9.1. Last change: 2025 Jul 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2986,6 +2986,28 @@ A jump table for the options with a short description can be found at |Q_op|.
29862986
Join the current window in the group of windows that shows differences
29872987
between files. See |vimdiff|.
29882988

2989+
*'dia'* *'diffanchors'* *E1549*
2990+
'diffanchors' 'dia' string (default "")
2991+
global or local to buffer |global-local|
2992+
List of {address} in each buffer, separated by commas, that are
2993+
considered anchors when used for diffing. It's valid to specify "$+1"
2994+
for 1 past the last line. "%" cannot be used for this option. There
2995+
can be at most 20 anchors set for each buffer.
2996+
2997+
Each anchor line splits the buffer (the split happens above the
2998+
anchor), with each part being diff'ed separately before the final
2999+
result is joined. When more than one {address} are provided, the
3000+
anchors will be sorted interally by line number. If using buffer
3001+
local options, each buffer should have the same number of anchors
3002+
(extra anchors will be ignored). This option is only used when
3003+
'diffopt' has "anchor" set. See |diff-anchors| for more details and
3004+
examples.
3005+
*E1550*
3006+
If some of the {address} do not resolve to a line in each buffer (e.g.
3007+
a pattern search that does not match anything), none of the anchors
3008+
will be used.
3009+
3010+
29893011
*'dex'* *'diffexpr'*
29903012
'diffexpr' 'dex' string (default "")
29913013
global
@@ -3014,6 +3036,10 @@ A jump table for the options with a short description can be found at |Q_op|.
30143036
patience patience diff algorithm
30153037
histogram histogram diff algorithm
30163038

3039+
anchor Anchor specific lines in each buffer to be
3040+
aligned with each other if 'diffanchors' is
3041+
set. See |diff-anchors|.
3042+
30173043
closeoff When a window is closed where 'diff' is set
30183044
and there is only one window remaining in the
30193045
same tab page with 'diff' set, execute
@@ -3116,6 +3142,7 @@ A jump table for the options with a short description can be found at |Q_op|.
31163142
"linematch:60", as this will enable alignment
31173143
for a 2 buffer diff hunk of 30 lines each,
31183144
or a 3 buffer diff hunk of 20 lines each.
3145+
Implicitly sets "filler" when this is set.
31193146

31203147
vertical Start diff mode with vertical splits (unless
31213148
explicitly specified otherwise).

0 commit comments

Comments
 (0)