|
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 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | 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|.
|
2986 | 2986 | Join the current window in the group of windows that shows differences
|
2987 | 2987 | between files. See |vimdiff|.
|
2988 | 2988 |
|
| 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 | + |
2989 | 3011 | *'dex'* *'diffexpr'*
|
2990 | 3012 | 'diffexpr' 'dex' string (default "")
|
2991 | 3013 | global
|
@@ -3014,6 +3036,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
3014 | 3036 | patience patience diff algorithm
|
3015 | 3037 | histogram histogram diff algorithm
|
3016 | 3038 |
|
| 3039 | + anchor Anchor specific lines in each buffer to be |
| 3040 | + aligned with each other if 'diffanchors' is |
| 3041 | + set. See |diff-anchors|. |
| 3042 | + |
3017 | 3043 | closeoff When a window is closed where 'diff' is set
|
3018 | 3044 | and there is only one window remaining in the
|
3019 | 3045 | 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|.
|
3116 | 3142 | "linematch:60", as this will enable alignment
|
3117 | 3143 | for a 2 buffer diff hunk of 30 lines each,
|
3118 | 3144 | or a 3 buffer diff hunk of 20 lines each.
|
| 3145 | + Implicitly sets "filler" when this is set. |
3119 | 3146 |
|
3120 | 3147 | vertical Start diff mode with vertical splits (unless
|
3121 | 3148 | explicitly specified otherwise).
|
|
0 commit comments