[Feature Request] Emit cursor-shape escape sequences on vim mode change

Resolved 💬 2 comments Opened Jun 30, 2026 by MadelineRitchie Closed Jun 30, 2026

Bug Description
Feature request: vim mode: emit cursor-shape escape sequences on mode change

When editorMode is set to "vim", Claude Code does not emit terminal escape sequences to change the cursor shape on mode transitions. Editors like Neovim send \e[1 q (block) on entering normal mode and \e[5 q (bar/beam) on entering insert mode, giving users a visual indicator of the current mode.

Without this, the cursor stays the same shape regardless of mode, which removes a key piece of feedback for vim users.

Expected behavior: On switching to normal mode, Claude Code emits \e[1 q; on switching to insert mode, \e[5 q (or whichever sequences the terminal reports supporting via $TERM / $TERM_PROGRAM).

Current behavior: Cursor shape does not change on mode transitions.

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.1.196
  • Feedback ID: bb6427d0-0442-4cf3-bfd1-0f7124daa345

See also
#71235
#58528
#53344

View original on GitHub ↗

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