Helix Keybindings in the REPL
Enabling Helix Mode
- Open the Settings panel in the REPL (click the settings icon or use the keyboard shortcut)
- Find the “Keybindings” section
- Select “Helix” from the available options
Key Differences from Vim
Helix uses a selection-first approach, which means:
- Selection → Action (Helix) vs Action → Motion (Vim)
- For example, to delete a word in Helix:
w(select word) →d(delete) - In Vim, it would be:
dw(delete word)
Common Helix Commands
Normal Mode
i— Enter insert mode before selectiona— Enter insert mode after selectionv— Enter visual/select modew— Select next worde— Select to end of wordb— Select previous wordx— Select/extend lined— Delete selectionc— Change selection (delete and enter insert mode)y— Yank (copy) selectionp— Paste after selectionu— UndoU— Redo/— Searchn— Select next search matchN— Select previous search match
Movement
h, j, k, l— Move left, down, up, rightgg— Go to start of documentge— Go to end of document{/}— Move to previous/next paragraph%— Match bracket
Multi-cursor
C— Duplicate cursor to line belowAlt-C— Duplicate cursor to line above,— Remove primary cursorAlt-,— Remove all secondary cursors
Helix
To evaluate code while in Helix mode, use the standard shortcuts:
Ctrl+EnterorAlt+Enter— Evaluate codeAlt+.— Stop playback
Resources
Notes
- The
codemirror-helixextension is described as an “initial version” and may not implement all Helix features - Behavior may differ slightly from the native Helix editor
- If you encounter issues, you can switch back to other keybinding modes in Settings
- The keybinding preference is saved in your browser’s local storage