OpenProgram Docs

Vim mode

fix the failing test NORMAL Web composerlabel inside the input > fix the failing test INSERT TUIright end of the input box
WayEffect
/vimTurns Vim mode on, or off if it is on
/vim on, /vim offSets it either way
openprogram config set editor.vim_mode trueThe same setting from a shell

Off by default. The setting is saved in config.json and every open input follows it: the TUI, the Web and App composer, and the box for editing a sent message. Off, the input looks and works as without it.

Modes

KeyResult
TypingINSERT, where keys type as usual. Each new message starts here.
EscINSERT to NORMAL. An open command or file menu closes first.
Esc in NORMALCancels a half-typed command; with none, stops a running turn
i a I A o OBack to INSERT: before or after the cursor, at the line's start or end, on a new line below or above
EnterSends, in either mode

NORMAL keys

GroupKeysDoes
Moveh j k l w b e W B E 0 ^ $ gg G f F t T ; ,Character, line, word, line ends, first or last line, to a character
Operated c y + a move, iw or aw; dd cc yyDelete, change, copy that span; doubled, whole lines
Editx X s S D C Y r p PDelete or change a character or the line's rest, replace a character, paste after or before
Historyu Ctrl-r .Undo, redo, repeat the last change
Count3w 2dd d2w 3.A number first repeats

One INSERT stretch is one undo step. Not included: Visual mode, named registers, macros, search and : commands. Arrow keys, Tab and shortcuts keep their usual job in both modes; in the TUI, Ctrl-r in INSERT still opens context search.

Last updated · 2026-11-30