Claude Code’s default keybindings might not match your muscle memory. Customize them.
Edit Keybindings
Open the keybindings file:
nano ~/.claude/keybindings.json
Common Customizations
{
"bindings": {
"ctrl+s": "submit",
"ctrl+k": "clear",
"ctrl+r": "resume",
"ctrl+p": "plan"
}
}
Chord Bindings
Chain two key presses for less common actions:
{
"bindings": {
"ctrl+k ctrl+c": "compact",
"ctrl+k ctrl+r": "rewind",
"ctrl+k ctrl+m": "model"
}
}
Press Ctrl+K, release, then press Ctrl+C to compact.
Available Actions
| Action | What it does |
|---|---|
submit | Send the current input |
clear | Clear conversation |
compact | Compact context |
rewind | Undo last turn |
resume | Resume last session |
plan | Enter plan mode |
model | Switch model |
Tip
If you use Vim mode, keybindings apply in insert mode. Normal mode uses standard Vim keys.