|
1 | | -*options.txt* For Vim version 9.2. Last change: 2026 Mar 01 |
| 1 | +*options.txt* For Vim version 9.2. Last change: 2026 Mar 02 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -4810,6 +4810,9 @@ A jump table for the options with a short description can be found at |Q_op|. |
4810 | 4810 | |hl-PmenuBorder| j popup menu border characters |
4811 | 4811 | |hl-PmenuShadow| H popup menu shadow |
4812 | 4812 | |hl-PreInsert| I text inserted when "preinsert" is in 'completeopt' |
| 4813 | + |hl-Normal| ( Window color (supersedes 'wincolor' option) |
| 4814 | + |
| 4815 | + Note that the "(" occasion is not set by default. |
4813 | 4816 |
|
4814 | 4817 | The display modes are: |
4815 | 4818 | r reverse (termcap entry "mr" and "me") |
@@ -5813,9 +5816,9 @@ A jump table for the options with a short description can be found at |Q_op|. |
5813 | 5816 | Like |lcs-tab|, but only for leading tabs. When |
5814 | 5817 | omitted, the "tab" setting is used for leading tabs. |
5815 | 5818 | |lcs-tab| must also be set for this to work. *E1572* |
5816 | | - You can combine it with "tab:", for example: |
5817 | | - `:set listchars=tab:>-,leadtab:.\ ` |
5818 | | - This shows leading tabs as periods(.) and other tabs |
| 5819 | + You can combine it with "tab:", for example: > |
| 5820 | + :set listchars=tab:>-,leadtab:.\ |
| 5821 | +< This shows leading tabs as periods(.) and other tabs |
5819 | 5822 | as ">--". |
5820 | 5823 | *lcs-trail* |
5821 | 5824 | trail:c Character to show for trailing spaces. When omitted, |
@@ -10246,8 +10249,19 @@ A jump table for the options with a short description can be found at |Q_op|. |
10246 | 10249 | *'wincolor'* *'wcr'* |
10247 | 10250 | 'wincolor' 'wcr' string (default empty) |
10248 | 10251 | local to window |
| 10252 | + DEPRECATED: Use 'winhighlight' if possible, this option uses |
| 10253 | + 'winhighlight' internally by setting it to: >vim |
| 10254 | + set winhighlight=!(:HighlightGroup |
| 10255 | +< If this option is set and 'winhighlight' is changed, then it will not |
| 10256 | + update the option value. For example, if 'wincolor' is set to "A" and |
| 10257 | + then 'winhighlight' is to an empty value, then 'wincolor' will still |
| 10258 | + remain as "A". Additionally, the existing value in 'winhighlight' will |
| 10259 | + be discarded when this option is set. |
| 10260 | + |
10249 | 10261 | Highlight group name to use for this window instead of the Normal |
10250 | | - color |hl-Normal|. |
| 10262 | + color |hl-Normal|. For other |highlight-groups|, see 'winhighlight'. |
| 10263 | + Note that it is not recommended to set this and 'winhighlight' at the |
| 10264 | + same time. |
10251 | 10265 |
|
10252 | 10266 | *'window'* *'wi'* |
10253 | 10267 | 'window' 'wi' number (default screen height - 1) |
@@ -10306,6 +10320,35 @@ A jump table for the options with a short description can be found at |Q_op|. |
10306 | 10320 | 'winheight' applies to the current window. Use 'winminheight' to set |
10307 | 10321 | the minimal height for other windows. |
10308 | 10322 |
|
| 10323 | + *'winhighlight'* *'whl'* |
| 10324 | +'winhighlight' 'whl' string (default empty) |
| 10325 | + local to window |
| 10326 | + Window-local highlight group mappings. Comma-delimited list of |
| 10327 | + highlight |group-name| pairs "{hl-from}:{hl-to},..." where each |
| 10328 | + {hl-from} is a |highlight-groups| item to be overridden by {hl-to} |
| 10329 | + group in the window. If {hl-from} is "Normal", then it will always |
| 10330 | + map to the "(" (window color) value in 'highlight'. |
| 10331 | + |
| 10332 | + If a highlight group name starts with "!", then it is assumed to map |
| 10333 | + to a value in 'highlight'. For example, this will override the |
| 10334 | + visual mode setting: >vim |
| 10335 | + set winhighlight=!v:SomeHighlightGroup |
| 10336 | +< This will map the occasion "v" to occasion "l" >vim |
| 10337 | + set winhighlight=!v:!l |
| 10338 | +< |
| 10339 | + Highlights of vertical separators are determined by the window to the |
| 10340 | + left of the separator. The 'tabline' highlight of a tabpage is |
| 10341 | + decided by the last-focused window of the tabpage. Highlights of |
| 10342 | + the popupmenu are determined by the current window. Highlights in the |
| 10343 | + message area cannot be overridden. |
| 10344 | + |
| 10345 | + When handling highlight group links, if a highlight group (which may |
| 10346 | + be a link as well) is overridden by 'winhighlight', then all highlight |
| 10347 | + groups that link to it will be affected. For example, if highlight |
| 10348 | + group C links to B which links to A, then >vim |
| 10349 | + set winhighlight=B:SomeHighlightGroup |
| 10350 | +< will make SomeHighlightGroup override groups B and C, but not A. |
| 10351 | + |
10309 | 10352 | *'winminheight'* *'wmh'* |
10310 | 10353 | 'winminheight' 'wmh' number (default 1) |
10311 | 10354 | global |
|
0 commit comments