Vim icon indicating copy to clipboard operation
Vim copied to clipboard

A problem occurs when pressing the u key

Open sheldonleung opened this issue 10 months ago • 2 comments

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

sheldonleung avatar Apr 12 '24 02:04 sheldonleung

I also have this problem. I suspect it’s related to line ending conversion, i.e. when a file uses CRLF line endings, but then VSCode fixes it to LF on the first edit (due to .editorconfig or other settings).

Kwpolska avatar May 31 '24 08:05 Kwpolska

I've had this issue for years, it's super annoying. Surprised to see so little discussion on the topic.

rhys-vdw avatar Aug 20 '24 01:08 rhys-vdw