Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 811 Bytes

File metadata and controls

28 lines (20 loc) · 811 Bytes

opencode-vim

Adds Vim-style insert and normal mode editing to the OpenCode prompt.

Demo

Installation

Install from the CLI:

opencode plugin opencode-vim@latest --global

Supported Keys

Key Behavior
<Esc>, <C-[> Enter normal mode
i, a, A, o, O Return to insert mode
h, j, k, l, w, b, e, $, 0 Move through the prompt
x, d, c, y, p, u, <C-r> Edit, yank, paste, undo, redo
v, V Visual and visual-line selection
3w, diw, ci", yiq, dip, yib Counts and text objects
<CR> in normal mode Submit the prompt
/vim Toggle Vim mode on or off

See docs/configuration.md for configuration options and keymap examples.