VSCodeVim / VSCodeVim/Vim

Moving cursor with mouse should trigger undo stop point

Open
#3,355 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/undo kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

This might not be a bug, but an inconvenience

When you're happy editing and start making changes with the mouse, the u undoes everything you did since the last time you pressed ESC.

Check the video

Make multiple changes in multiple lines and then ESC and click u one time

vscode 1.30
vim 0.17.0

vscode vim

Expected Behaviour

Make changes, move lines with mouse, undo goes back one by one

This is Gvim 8.1
windows 10

vim gvim

Undo line-based

I think the cursor movement might trigger some kind of undo history line based but that's just my guess

**Great Plugin btw!!! **
without you I'd given up on vim
Vim is the greatest editor and the worst GUI at the same time
this plugin is the best of two worlds

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 described editing sequence in VS Code Vim 0.17: make changes across multiple lines, move the cursor with the mouse, press ESC, and use u. Compare the undo behavior with GVim 8.1; done means mouse movement creates undo stop points so u reverses changes individually.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.