-*options.txt* For Vim version 9.1. Last change: 2025 Feb 08
+*options.txt* For Vim version 9.1. Last change: 2025 Feb 16
VIM REFERENCE MANUAL by Bram Moolenaar
When on, uses |highlight-guifg| and |highlight-guibg| attributes in
the terminal (thus using 24-bit color).
- Will automatically be enabled, if Vim detects that it runs in a
- capable terminal (when the terminal supports the RGB terminfo
- capability or when the number of colors |t_Co| supported by the
- terminal is 0x1000000, e.g. with $TERM=xterm-direct). Due to the async
- nature of querying the terminal, enabling this automatically is
- noticable. Use >
- set notermguicolors
-< to explicitly disable.
-
Requires a ISO-8613-3 compatible terminal. If setting this option
does not work (produces a colorless UI) reading |xterm-true-color|
might help.
increased to 12pt to accomodate modern high-dpi monitors
- the default value of the 'keyprotocol' option has been updated and support
for the ghostty terminal emulator (using kitty protocol) has been added
-- 'termguicolors' is automatically enabled if the terminal supports the RGB
- terminfo capability or supports 0x1000000 colors
*changed-9.2*
Changed~
sprintf((char *)nr_colors, "%d", t_colors);
else
*nr_colors = NUL;
+#if 0
#ifdef FEAT_TERMGUICOLORS
// xterm-direct, enable termguicolors, when it wasn't set yet
if (t_colors == 0x1000000 && !p_tgc_set)
set_option_value((char_u *)"termguicolors", 1L, NULL, 0);
+#endif
#endif
set_string_option_direct((char_u *)"t_Co", -1, nr_colors, OPT_FREE, 0);
}
# ifdef FEAT_TERMRESPONSE
// Do those ones first, both may cause a screen redraw.
"Co",
- "RGB",
+ // disabled, because it switches termguicolors, but that
+ // is noticable and confuses users
+ // "RGB",
# endif
"ku", "kd", "kr", "kl",
"#2", "#4", "%i", "*7",
#endif
may_adjust_color_count(val);
}
+#if 0
#ifdef FEAT_TERMGUICOLORS
// when RGB result comes back, it is supported when the result contains an '='
else if (name[0] == 'R' && name[1] == 'G' && name[2] == 'B' && code[9] == '=')
set_option_value((char_u *)"termguicolors", 1L, NULL, 0);
}
}
+#endif
#endif
else
{