bug: vim editorMode initializes cursor on line 2 instead of line 1
Resolved 💬 2 comments Opened Jun 6, 2026 by 824ysuk Closed Jul 15, 2026
Summary
When editorMode is set to "vim" in settings.json, the cursor in the input area starts on line 2 instead of line 1 at the beginning of each session.
Environment
- Claude Code version: latest (as of 2026-06-06)
- OS: macOS
editorMode:"vim"(set in~/.claude/settings.json)
Steps to Reproduce
- Set
"editorMode": "vim"in~/.claude/settings.json(or via/config) - Start a new Claude Code session
- Observe the cursor position in the input area
Expected Behavior
The cursor should appear on line 1 of the input area, immediately ready for typing.
Actual Behavior
The cursor appears on line 2. A > character is visible on line 1, and the cursor sits one line below it — requiring the user to navigate up or just accept the offset.
Workaround
Switching editorMode to "normal" resolves the issue. The cursor correctly initializes on line 1.
Additional Context
Confirmed reproducible across sessions. The issue is specific to vim mode — normal mode is unaffected.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗