Motion keys don't work after exiting visual mode
Open
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
When exiting visual mode, the first press of a motion key has no effect. Only after the first press, motions continue to work as usual.
To Reproduce
Steps to reproduce the behavior:
- Select some text in visual mode
- Escape visual mode
- Hit a motion key like J
- Cursor doesn't move
- Hit motion key again
- Cursor now moves
Expected behavior
Cursor should move the first time.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.32.4
- VSCode version: 1.118.1
- OS: macOS 26.4.1
https://github.com/user-attachments/assets/8b9d0c41-a229-4535-b093-178d9301de68
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
Reproduce the issue in VSCode by selecting text, exiting visual mode, and pressing a motion key such as J. Trace the key handling for the first motion after Escape; done means the first motion key moves the cursor normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100