Skip to main content
Module

x/denops_std/option/mod.ts>colorcolumn

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

'colorcolumn' is a comma-separated list of screen columns that are highlighted with ColorColumn hl-ColorColumn. Useful to align text. Will make screen redrawing slower. The screen column can be an absolute number, or a number preceded with '+' or '-', which is added to or subtracted from 'textwidth'.

:set cc=+1  " highlight column after 'textwidth'
:set cc=+1,+2,+3  " highlight three columns after 'textwidth'
:hi ColorColumn ctermbg=lightgrey guibg=lightgrey

When 'textwidth' is zero then the items with '-' and '+' are not used. A maximum of 256 columns are highlighted.

(default "")

not available when compiled without the +syntax feature

type

{ get(denops: Denops): Promise<string>; set(denops: Denops, value: string): Promise<void>; reset(denops: Denops): Promise<void>; getLocal(denops: Denops): Promise<string>; setLocal(denops: Denops, value: string): Promise<void>; resetLocal(denops: Denops): Promise<void>; getBuffer(denops: Denops, bufnr: number): Promise<string>; setBuffer(
denops: Denops,
bufnr: number,
value: string,
): Promise<void>; getWindow(denops: Denops, winnr: number): Promise<string>; setWindow(
denops: Denops,
winnr: number,
value: string,
): Promise<void>; }