Skip to content

smelt.vim

Availability: Terminal UI only; raises in headless mode.

Read and write the vim mode of the focused vim-enabled surface. UiHost-only.

smelt.vim.mode

fun(): smelt.vim.Mode?

Types: smelt.vim.Mode

Return the vim mode of the focused surface, or nil if it isn't vim-enabled.

smelt.vim.set_mode

fun(mode: smelt.vim.Mode): nil

Types: smelt.vim.Mode

Switch the vim mode of the focused vim-enabled window. Raises on unknown values.