VSCodeVim / VSCodeVim/Vim

A problem occurs when pressing the u key

Open
#8,991 9 comments 3 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
A blank line is automatically added between lines of code when the u key is pressed on the keyboard.
It's an occasional event that doesn't happen very often.

To Reproduce
Steps to reproduce the behavior:
Occasionally, this problem occurs if I press u to undo changes after modifying the code.

  1. Modify the code.
  2. Press the u key on keyboard.
  3. Automatically add blank lines between lines of code.
  4. See error

Expected behavior
I'm not sure if it's a bug or not, this problem has been occurring since the last update and the same issue occurs with changing devices. When I disable VSCodeVim, this problem goes away.

Screenshots
动画

Environment (please complete the following information):

image
image

  • Extension (VsCodeVim) version: v1.27.2
  • VSCode version: 1.88.1 (user setup)
  • OS: Windows_NT x64 10.0.22631
  • Windows 11 Professional Workstation Edition 23H2 22631.3447

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 intermittent behavior in VSCodeVim v1.27.2 with the reported VSCode and Windows versions, focusing on pressing u after modifying code. Inspect the extension's undo and keybinding behavior; done means pressing u no longer inserts blank lines between code lines. No source file or test is named in the issue.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.