What
Users who enable vim mode can now define custom two-character key sequences that trigger actions in INSERT mode, similar to the classic jj → <Esc> mapping from Vim configurations.
Usage
Add to ~/.claude/settings.json:
{
"editorMode": "vim",
"vimInsertModeRemaps": {
"jj": "<Esc>",
"jk": "<Esc>"
}
}Details
- Each key is exactly two printable characters typed in sequence
"<Esc>"(return to NORMAL mode) is the only supported target value- Only active when
editorModeis set to"vim" - Multiple remaps can be configured simultaneously
Evidence
New vimInsertModeRemaps setting schema (search for "Vim INSERT-mode key-sequence remaps")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Added vimInsertModeRemaps setting: map two-key insert-mode sequences like jj to Escape in vim mode