|
3 | 3 | helpname: 'diff' |
4 | 4 | --- |
5 | 5 | <div id='vimCodeElement'> |
6 | | -<a class="Constant" href="diff.html" name="diff.txt">diff.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2024 Feb 01<br> |
| 6 | +<a class="Constant" href="diff.html" name="diff.txt">diff.txt</a> For <span class="Identifier">Vim バージョン 9.1.</span> Last change: 2025 Mar 28<br> |
7 | 7 | <br> |
8 | 8 | <br> |
9 | 9 | <span class="Identifier">VIMリファレンスマニュアル by Bram Moolenaar</span><br> |
|
238 | 238 | だったとしても強調されることを意味する。ここで<br> |
239 | 239 | は <a class="Type" href="options.html#'diffopt'">'diffopt'</a> の "iwhite" と "icase" が適用され<br> |
240 | 240 | る。<br> |
| 241 | +<a class="Identifier" href="syntax.html#hl-DiffText">hl-DiffText</a> DiffText 変更された行内の変更されたテキスト。正確な動作<br> |
| 242 | + は、<a class="Type" href="options.html#'diffopt'">'diffopt'</a> の <span class="Comment">inline:</span> 設定によって異なる。<br> |
| 243 | + <span class="Comment">inline:</span> が "simple" に設定されている場合、<br> |
| 244 | + Vim は異なる最初の文字と異なる最後の文字を検索<br> |
| 245 | + する (行末から検索する)。その間のテキストがハ<br> |
| 246 | + イライトされる。つまり、中間の同じ部分はとにか<br> |
| 247 | + くハイライトされる。ここでは、<a class="Type" href="options.html#'diffopt'">'diffopt'</a> フラグ<br> |
| 248 | + の "iwhite" と "icase" が使用される。<br> |
| 249 | + <span class="Comment">inline:</span> が "char" または "word" に設定されて<br> |
| 250 | + いる場合、Vim は内部 diff ライブラリを使用し<br> |
| 251 | + て、変更されたブロック間の詳細な diff を実行<br> |
| 252 | + し、2 つのブロック間の正確な違いをハイライトす<br> |
| 253 | + る。内部 diff に影響する <a class="Type" href="options.html#'diffopt'">'diffopt'</a> フラグを尊<br> |
| 254 | + 重する。<br> |
| 255 | + <span class="Comment">inline:</span> が "none" に設定されている場合は使用<br> |
| 256 | + されない。<br> |
| 257 | +<a class="Identifier" href="syntax.html#hl-DiffTextAdd">hl-DiffTextAdd</a> DiffTextAdd 変更された行内に追加されたテキスト。DiffText<br> |
| 258 | + に似ているが、他のバッファに対応するテキストが<br> |
| 259 | + ない場合に使用される。<span class="Comment">inline:</span> が "simple" ま<br> |
| 260 | + たは "none" に設定されている場合は使用されな<br> |
| 261 | + い。<br> |
241 | 262 | <a class="Identifier" href="syntax.html#hl-DiffDelete">hl-DiffDelete</a> DiffDelete 削除された行。補充された行についても、実際その<br> |
242 | 263 | バッファには存在していないことから、このグルー<br> |
243 | 264 | プが適用される。<br> |
|
0 commit comments