|
1 |
| -*diff.txt* For Vim version 9.1. Last change: 2024 Feb 01 |
| 1 | +*diff.txt* For Vim version 9.1. Last change: 2025 Mar 28 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -226,14 +226,28 @@ The diffs are highlighted with these groups:
|
226 | 226 | |hl-DiffAdd| DiffAdd Added (inserted) lines. These lines exist in
|
227 | 227 | this buffer but not in another.
|
228 | 228 | |hl-DiffChange| DiffChange Changed lines.
|
229 |
| -|hl-DiffText| DiffText Changed text inside a Changed line. Vim |
230 |
| - finds the first character that is different, |
231 |
| - and the last character that is different |
232 |
| - (searching from the end of the line). The |
233 |
| - text in between is highlighted. This means |
234 |
| - that parts in the middle that are still the |
235 |
| - same are highlighted anyway. The 'diffopt' |
236 |
| - flags "iwhite" and "icase" are used here. |
| 229 | +|hl-DiffText| DiffText Changed text inside a Changed line. Exact |
| 230 | + behavior depends on the `inline:` setting in |
| 231 | + 'diffopt'. |
| 232 | + With `inline:` set to "simple", Vim finds the |
| 233 | + first character that is different, and the |
| 234 | + last character that is different (searching |
| 235 | + from the end of the line). The text in |
| 236 | + between is highlighted. This means that parts |
| 237 | + in the middle that are still the same are |
| 238 | + highlighted anyway. The 'diffopt' flags |
| 239 | + "iwhite" and "icase" are used here. |
| 240 | + With `inline:` set to "char" or "word", Vim |
| 241 | + uses the internal diff library to perform a |
| 242 | + detailed diff between the changed blocks and |
| 243 | + highlight the exact difference between the |
| 244 | + two. Will respect any 'diffopt' flag that |
| 245 | + affects internal diff. |
| 246 | + Not used when `inline:` is set to "none". |
| 247 | +|hl-DiffTextAdd| DiffTextAdd Added text inside a Changed line. Similar to |
| 248 | + DiffText, but used when there is no |
| 249 | + corresponding text in other buffers. Not used |
| 250 | + when `inline:` is set to "simple" or "none". |
237 | 251 | |hl-DiffDelete| DiffDelete Deleted lines. Also called filler lines,
|
238 | 252 | because they don't really exist in this
|
239 | 253 | buffer.
|
|
0 commit comments