Skip to main content
Module

x/denops_std/option/mod.ts>termguicolors

📚 Standard module for denops.vim
Go to Latest
variable termguicolors
import { termguicolors } from "https://deno.land/x/denops_std@v4.1.6/option/mod.ts";

When on, uses highlight-guifg and highlight-guibg attributes in the terminal (thus using 24-bit color).

Requires a ISO-8613-3 compatible terminal. If setting this option does not work (produces a colorless UI) reading xterm-true-color might help.

For Win32 console, Windows 10 version 1703 (Creators Update) or later is required. Use this check to find out:

if has('vcon')

This requires Vim to be built with the +vtp feature.

Note that the "cterm" attributes are still used, not the "gui" ones.

When using Vim with Windows Terminal, the background of Windows Terminal is normally filled with the Vim background color. Setting 'termguicolors' and the guibg of the Normal highlight group to NONE will make the background transparent:

:hi Normal guibg=NONE

NOTE: This option is reset when 'compatible' is set.

(default off)

not available when compiled without the +termguicolors feature

type

{ get(denops: Denops): Promise<boolean>; set(denops: Denops, value: boolean): Promise<void>; reset(denops: Denops): Promise<void>; getGlobal(denops: Denops): Promise<boolean>; setGlobal(denops: Denops, value: boolean): Promise<void>; resetGlobal(denops: Denops): Promise<void>; }