Skip to content

smelt.vim

Tier: UiHost — Requires a terminal UI; calling these from headless mode raises.

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.