Skip to content

VimApi.getOption method

VimApi › getOption

Unofficial

Get the value of a Vim option.

Signature:

getOption(name: string, cm?: VimEditor | undefined, cfg?: object | undefined): unknown

Parameters:

Parameter Type Description
name string The name of the option.
cm? VimEditor | undefined The editor instance.
cfg? object | undefined The configuration object.

Returns: unknownThe option value.