Search notes:

vim syntax highlighting

Enabling syntax highlighting

:syntax enable

Syntax items

Three types of syntax items:

Syntax groups

A syntax group consists of multiple syntax items.
TODO: compare with highlight group.

Highlight groups

Three types of highlight groups:

Variables

The name of the loaded syntax for a buffer is stored in b:current_syntax.

See also

src/syntax.c
$VIMRUNTIME/syntax/2html.vim.

Index