Cursor jitter when pressing a (append) command
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
The cursor intermittently jitters/jumps when pressing a. The cursor seems to briefly moves to the wrong position before settling into the correct insert position. This does not occurs all the time, but enough to be distracting while typing.
To Reproduce
Steps to reproduce the behavior:
- Open a new text file
- Add some text (e.g: "The quick brown fox jumps over the lazy dog")
- Put the cursor to a character (e.g: p)
- Press
a, if the issue does not appear, pressamultiple time
Expected behavior
Smooth cursor movement to append position (like the i command)
Screen Recordings
Screen recording of the issue:
https://github.com/user-attachments/assets/d0b9fcbc-d7ac-4ca9-b28e-edce0bb59fd1
Screen recording of the behavior with cursorSmoothCaretAnimation set to on:
https://github.com/user-attachments/assets/a0e642ba-8c27-4fe4-988a-cce9a2db69b2
Environment:
- Extension (VsCodeVim) version: 1.30.1
- VSCode version: 1.104.1 (Stable), 1.105.0 (Insider)
- OS: macOS 15.7 (24G222)
Additional context
- cursorSmoothCaretAnimation masks the issue but unusable due to https://github.com/VSCodeVim/Vim/issues/3265
- Setting
"extensions.experimental.affinity": {"vscodevim.vim": 1}does not solve the issue - The issue is also present on VS Code Web
- I tested with all other extensions disabled. Both on Vscode, Vscode Insider and Vscode Web
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the jitter in VS Code using the a append command, comparing it with the i command and the recorded behavior. Trace the append-command cursor movement and verify the result across desktop and web; done when the cursor moves smoothly to the append position without the intermittent jump.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100