VSCodeVim / VSCodeVim/Vim

Motion keys don't work after exiting visual mode

Open
#9,999 1 comment 0 reactions 0 assignees View on GitHub

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:

  1. Select some text in visual mode
  2. Escape visual mode
  3. Hit a motion key like J
  4. Cursor doesn't move
  5. Hit motion key again
  6. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.