vim Configuring Vim Variables


Like most scripting languages, vimscript has variables.

One can define a variable with the :let command:

let variable = value

and delete it with :unlet:

unlet variable

In Vim, variables can be scoped by prepending a single letter and a colon to their name. Plugin authors use that feature to mimic options:

let g:plugin_variable = 1

See :help internal-variables.