Search notes:

Vim ex command: syntax

Enabling highlighting

syntax enable
syntax on
These two commands run $VIMRUNTIME/syntax/syntax.vim.

Stop highlighting

:syntax off
:syntax off runs $VIMRUNTIME/syntax/nosyntax.vim.

Highlighting for specific files only

syntax manual
syntax manual runs $VIMRUNTIME/syntax/manual.vim.

Temporarlily suspend highlighting

syntax clear
When starting another file, it will bring highlighting on again, however.

Arguments

Arguments that can be used for :syntax keyword, :syntax match and :syntax region are: conceal, cchar, contained, containedin, nextgroup, transparent, skipwhite, skipnl and skipempty.
:syntax match and :syntax region can additionially specify contains, fold, display, extend.
:syntax region can additionially specify oneline and concealends.
sa: :help syn-arguments

TODO

syntax keyword {group-name} [{options}] {keyword} .. [{options}]
:syntax spell toplevel
:syntax keyword

:syntax conceal

:syntax conceal is handled in syn_cmd_conceal in syn_cmd_conceal (src/syntax.c)
See also feature FEAT_CONCEAL.

:syntax case

:syntax conceal is handled in syn_cmd_conceal in syn_cmd_case (src/syntax.c)

See also

syntax highlighting
Ex commands

Index