1- *options.txt* For Vim version 9.2. Last change: 2026 Mar 16
1+ *options.txt* For Vim version 9.2. Last change: 2026 Mar 23
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -97,13 +97,29 @@ achieve special effects. These options come in three forms:
9797 If the option is a list of flags, superfluous flags
9898 are removed. When adding a flag that was already
9999 present the option value doesn't change.
100+ When the option supports "key:value" items and {value}
101+ contains a "key:value" item or multiple
102+ comma-separated items, each item is processed
103+ individually:
104+ - A "key:value" item where the key already exists with
105+ a different value: the old item is removed and the
106+ new item is appended to the end.
107+ - A "key:value" item that is an exact duplicate is
108+ left unchanged.
109+ - Other items that already exist are left unchanged.
110+ - New items are appended to the end.
100111 Also see | :set-args | above.
101112
102113:se[t] {option} ^={value} *:set^=*
103114 Multiply the {value} to a number option, or prepend
104115 the {value} to a string option. When the option is a
105116 comma-separated list, a comma is added, unless the
106117 value was empty.
118+ When the option supports "key:value" items and {value}
119+ contains a "key:value" item or multiple
120+ comma-separated items, each item is processed
121+ individually. Works like | :set+= | but new items are
122+ prepended to the beginning instead of appended.
107123 Also see | :set-args | above.
108124
109125:se[t] {option} -={value} *:set-=*
@@ -116,6 +132,12 @@ achieve special effects. These options come in three forms:
116132 When the option is a list of flags, {value} must be
117133 exactly as they appear in the option. Remove flags
118134 one by one to avoid problems.
135+ When the option supports "key:value" items and {value}
136+ contains a "key:value" item or multiple
137+ comma-separated items, each item is processed
138+ individually. A "key:value" item removes the existing
139+ item with that key regardless of its value. A "key:"
140+ item also removes by key match.
119141 The individual values from a comma separated list or
120142 list of flags can be inserted by typing 'wildchar' .
121143 See | complete-set-option | .
@@ -6004,7 +6026,8 @@ A jump table for the options with a short description can be found at |Q_op|.
60046026 Increasing this limit above 200 also changes the maximum for Ex
60056027 command recursion, see | E169 | .
60066028 See also | :function | .
6007- Also used for maximum depth of callback functions.
6029+ Also used for maximum depth of callback functions and encoding and
6030+ decoding of deeply nested json data.
60086031
60096032 *'maxmapdepth'* *'mmd'* *E223*
60106033'maxmapdepth' 'mmd' number (default 1000)
0 commit comments