|
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 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -2986,6 +2986,27 @@ 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 | + |
2989 | 3010 | *'dex'* *'diffexpr'*
|
2990 | 3011 | 'diffexpr' 'dex' string (default "")
|
2991 | 3012 | global
|
@@ -3014,6 +3035,10 @@ A jump table for the options with a short description can be found at |Q_op|.
|
3014 | 3035 | patience patience diff algorithm
|
3015 | 3036 | histogram histogram diff algorithm
|
3016 | 3037 |
|
| 3038 | + anchor Anchor specific lines in each buffer to be |
| 3039 | + aligned with each other if 'diffanchors' is |
| 3040 | + set. See |diff-anchors|. |
| 3041 | + |
3017 | 3042 | closeoff When a window is closed where 'diff' is set
|
3018 | 3043 | and there is only one window remaining in the
|
3019 | 3044 | same tab page with 'diff' set, execute
|
@@ -3116,6 +3141,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
3116 | 3141 | "linematch:60", as this will enable alignment
|
3117 | 3142 | for a 2 buffer diff hunk of 30 lines each,
|
3118 | 3143 | or a 3 buffer diff hunk of 20 lines each.
|
| 3144 | + Implicitly sets "filler" when this is set. |
3119 | 3145 |
|
3120 | 3146 | vertical Start diff mode with vertical splits (unless
|
3121 | 3147 | explicitly specified otherwise).
|
@@ -7477,6 +7503,9 @@ A jump table for the options with a short description can be found at |Q_op|.
|
7477 | 7503 | Don't forget to precede the space with a backslash: ":set sp=\ ".
|
7478 | 7504 | In the future pipes may be used for filtering and this option will
|
7479 | 7505 | become obsolete (at least for Unix).
|
| 7506 | + Note: When using a pipe like "| tee", you'll lose the exit code of the |
| 7507 | + shell command. This might be configurable by your shell, look for |
| 7508 | + the pipefail option (for bash and zsh, use ":set -o pipefail"). |
7480 | 7509 | This option cannot be set from a |modeline| or in the |sandbox|, for
|
7481 | 7510 | security reasons.
|
7482 | 7511 |
|
@@ -9768,7 +9797,7 @@ A jump table for the options with a short description can be found at |Q_op|.
|
9768 | 9797 | < 'wildchar' also enables completion in search pattern contexts such as
|
9769 | 9798 | |/|, |?|, |:s|, |:g|, |:v|, and |:vim|. To insert a literal <Tab>
|
9770 | 9799 | instead of triggering completion, type <C-V><Tab> or "\t".
|
9771 |
| - See also |'wildoptions'|. |
| 9800 | + See also 'wildoptions' and |wildtrigger()|. |
9772 | 9801 | NOTE: This option is set to the Vi default value when 'compatible' is
|
9773 | 9802 | set and to the Vim default value when 'compatible' is reset.
|
9774 | 9803 |
|
|
0 commit comments