Skip to main content
Claude Code supports a full set of keyboard shortcuts for navigating the REPL efficiently. Run /help inside the REPL to see the current keybinding reference.

Default keybindings

Input & editing

History navigation

REPL navigation

Multi-line input

Vim mode

Enable vim keybindings with /vim. In vim mode, the input prompt gains a modal interface:

Normal mode

Insert mode

Standard text input. Press Esc to return to normal mode.

Custom keybindings

Keybindings can be customized via /keybindings (if available on your version) or by editing the keybindings configuration file in ~/.claude/keybindings.json.
Press Ctrl+P at any time inside the Claude Code REPL to open the command palette and see all available actions with their current keybindings.