[FEATURE] jk escape sequence to exit vim insert mode

Resolved 💬 3 comments Opened Apr 15, 2026 by wojciechpiatkowski-klz Closed Apr 19, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

Add support for jk (and optionally other user-configurable sequences) as an escape sequence to exit vim INSERT mode, similar to the common vim/neovim configuration:

inoremap jk <Esc>

This is already a repost of existing feature request. I decided to create a new issue as the original one is closed already. https://github.com/anthropics/claude-code/issues/13631

Proposed Solution

  1. Hard-coded jk sequence — simplest, covers the most common use case
  2. Configurable escape sequences in keybindings.json — a new VimInsert context with an vim:exitInsertMode action, allowing users to define their own sequences (e.g. jk, jj, kj)
  3. Read local ~/.vimrc for vim settings; and apply some of them which are relevant: e.g. inoremap jk <ESC>

Alternative Solutions

_No response_

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗