VSCodeVim / VSCodeVim/Vim

File is edited with random edits when pressing k

Open
#9,322 14 comments 6 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
File is edited randomnly when pressing k.

To Reproduce
Steps to reproduce the behavior:

  1. Open any file
  2. Navigate through the file as usual (h, j, k, l) (normal mode of course)
  3. Press j,k,h or l (at some moment ... it's random)

Expected behavior
The cursor moves up and down in the file and the file contents remain intact.

Screenshots
image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.28.1 (latest at this point)
  • VSCode version: 1.94.2
  • OS: Windows_NT x64 10.0.19045

Context
I have not done any modifications to my keyboard settings latetly nor any modifications regarding VSCode configuration. This started happening yesterday, or the day before that. I also have Emacs installed and there I see no issues in using jkhl.
Also VSCode interrupts breifly before the strange edit happens. Like it jamms breifly. I see this because I'm in the middle of moving the cursor.
I use autohotkey for some time now. I see autohotkey aggravates this issue but it still happens without using autohotkey.

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

Start by reproducing the report in VSCodeVim v1.28.1 with VS Code 1.94.2 on Windows, using h, j, k, and l in normal mode. Compare behavior with AutoHotkey disabled, then trace the key-handling path once the intermittent edit is observed. Done means navigation no longer changes file contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.