Edit the prompt with vim keybindings

keyboard shortcuts

// what it does

Enable vim-style editing via /config to Editor mode, or set "editorMode": "vim" in settings.json. Esc enters NORMAL mode; i, a, and o return to INSERT. NORMAL mode supports the usual motions and operators — h j k l to move, w and b for words, dd and yy to delete and yank a line, cc to change, p to paste, and . to repeat. Set vimInsertModeRemaps to map a two-key sequence like jj to Escape.

// shortcut

Esc
i
dd
yy

// gotcha

In NORMAL mode, when the cursor is at the start or end of the input and can't move further, j/k and the arrow keys navigate command history instead of the text — so an extra k can silently swap in a previous prompt.

// resources