"Vim Mode: Cursor Always Visible Across Multiple Terminal Instances"
Status Closed — not planned
Maintainer reply None cached
Activity 12 comments · opened May 31, 2025 · closed Feb 28, 2026
Bug Description
Ok so the main issue is that when in vim mode the cursor always shows up. So if I have two or three claude codes running in the same terminal (i.e. tmux altho i just use kitty terminal's built in functionalitiy, it's very hard to tell which one is active. The ideal solution would be what happens if I have multiple neovims open in the same fashion - the cursor only shows in the active one.
Environment Info
- Platform: macos
- Terminal: kitty
- Version: 1.0.7
- Feedback ID: b57f5d65-3313-4b47-b391-7125ce2fb948
Errors
[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:882:11)\n at execSync (node:child_process:954:15)\n at BZ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:638:3921)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:6930\n at Q (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:526:17069)\n at fl (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:5949)\n at YG (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:566:5580)\n at fq2 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1999:4809)","timestamp":"2025-05-31T20:44:23.459Z"}]
12 Comments
So to say it more simply: When using Vim mode, Claude Code always shows the block cursor even when "inactive". It should work like other terminal-based apps (such as Neovim) - the cursor should only show in the active window.
!Image
See: Screenshot, note how there are two cursors showing up when there should only ever be one
I also find this a UX issue. I find myself typing in the wrong terminal as a result because it looks like Claude has focus. The solution would be to hide the cursor when the terminal does not have focus.
Same issue here: frequently causes me to type in the wrong terminal pane
Possibly a duplicate of (or at least related to) this earlier issue, which mentions tmux but not vim: https://github.com/anthropics/claude-code/issues/842
This issue is still present. It is very confusing seeing the cursor all the time.
I've found that with tmux, if you do
set -g focus-events onthen claude will at least hide the cursor when you switch tmux panes, which gets around most of the problem.It still doesn't react to the usual events like other terminal programs I use though. So eg. if I click from iTerm to another application, then claude will continue to show the cursor, whereas other programs will receive and handle the event to focus out. So the tmux setting isn't a full solution, but it does help if you can't tell what tmux pane you're on.
I've used tmux for years and never had to care about that setting before, so something is definitely not right.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.
i would also like to see this fixed.
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.