Skip to content

Update diff.{txt,jax} #2018

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion doc/diff.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*diff.txt* For Vim バージョン 9.1. Last change: 2024 Feb 01
*diff.txt* For Vim バージョン 9.1. Last change: 2025 Mar 28


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -233,6 +233,27 @@ Vimは片方のウィンドウには存在しないがもう一方には存在
だったとしても強調されることを意味する。ここで
は 'diffopt' の "iwhite" と "icase" が適用され
る。
|hl-DiffText| DiffText 変更された行内の変更されたテキスト。正確な動作
は、'diffopt' の `inline:` 設定によって異なる。
`inline:` が "simple" に設定されている場合、
Vim は異なる最初の文字と異なる最後の文字を検索
する (行末から検索する)。その間のテキストがハ
イライトされる。つまり、中間の同じ部分はとにか
くハイライトされる。ここでは、'diffopt' フラグ
の "iwhite" と "icase" が使用される。
`inline:` が "char" または "word" に設定されて
いる場合、Vim は内部 diff ライブラリを使用し
て、変更されたブロック間の詳細な diff を実行
し、2 つのブロック間の正確な違いをハイライトす
る。内部 diff に影響する 'diffopt' フラグを尊
重する。
`inline:` が "none" に設定されている場合は使用
されない。
|hl-DiffTextAdd| DiffTextAdd 変更された行内に追加されたテキスト。DiffText
に似ているが、他のバッファに対応するテキストが
ない場合に使用される。`inline:` が "simple" ま
たは "none" に設定されている場合は使用されな
い。
|hl-DiffDelete| DiffDelete 削除された行。補充された行についても、実際その
バッファには存在していないことから、このグルー
プが適用される。
Expand Down
32 changes: 23 additions & 9 deletions en/diff.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*diff.txt* For Vim version 9.1. Last change: 2024 Feb 01
*diff.txt* For Vim version 9.1. Last change: 2025 Mar 28


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -226,14 +226,28 @@ The diffs are highlighted with these groups:
|hl-DiffAdd| DiffAdd Added (inserted) lines. These lines exist in
this buffer but not in another.
|hl-DiffChange| DiffChange Changed lines.
|hl-DiffText| DiffText Changed text inside a Changed line. Vim
finds the first character that is different,
and the last character that is different
(searching from the end of the line). The
text in between is highlighted. This means
that parts in the middle that are still the
same are highlighted anyway. The 'diffopt'
flags "iwhite" and "icase" are used here.
|hl-DiffText| DiffText Changed text inside a Changed line. Exact
behavior depends on the `inline:` setting in
'diffopt'.
With `inline:` set to "simple", Vim finds the
first character that is different, and the
last character that is different (searching
from the end of the line). The text in
between is highlighted. This means that parts
in the middle that are still the same are
highlighted anyway. The 'diffopt' flags
"iwhite" and "icase" are used here.
With `inline:` set to "char" or "word", Vim
uses the internal diff library to perform a
detailed diff between the changed blocks and
highlight the exact difference between the
two. Will respect any 'diffopt' flag that
affects internal diff.
Not used when `inline:` is set to "none".
|hl-DiffTextAdd| DiffTextAdd Added text inside a Changed line. Similar to
DiffText, but used when there is no
corresponding text in other buffers. Not used
when `inline:` is set to "simple" or "none".
|hl-DiffDelete| DiffDelete Deleted lines. Also called filler lines,
because they don't really exist in this
buffer.
Expand Down