question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pressing `u` will undo all the stack.

See original GitHub issue
  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


Is this a BUG REPORT or FEATURE REQUEST? (choose one): This is a bug report

Environment:

  • VSCode Version: 1.15.1
  • VsCodeVim Version: 0.10.0
  • OS: macos 10.12.6

What happened:

I press uin Normal mode in an editor window. Every single action in the undo stack was undone. Here’s a GIF:

bug vscode

What did you expect to happen:

I expected the last action on the stack to be undone.

How to reproduce it:

I have no idea. I was reliably triggering the bug with the exact buffer I had but at some point it stopped doing it. Then it did it again.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:714
  • Comments:161 (33 by maintainers)

github_iconTop GitHub Comments

120reactions
khanhhuycommented, Sep 10, 2019

Added this code to my settings.json solved the problem. The above solution added at vim.otherModesKeyBindings does not work for me.

"vim.normalModeKeyBindingsNonRecursive": [
        {
            "before": [
                "u"
            ],
            "after": [],
            "commands": [
                {
                    "command": "undo"
                }
            ]
        },
        {
            "before": [
                "<C-r>"
            ],
            "after": [],
            "commands": [
                {
                    "command": "redo"
                }
            ]
        }
    ]
67reactions
xconvergecommented, Sep 28, 2017

Next time this happens to someone, can you check to see if you have the same file open twice in vscode please, then either thumbs up this for yes, or thumbs down it for no

Read more comments on GitHub >

github_iconTop Results From Across the Web

VSCodeVim Undo stack should be synced with VSCode undo ...
What did you do? Press i . Type some text: PIZZA . Press escape. Press i . Type some more text: IS GREAT...
Read more >
Clearing the Undo Stack in a Macro in Excel - Causal
Simply press and hold down the Ctrl key, and then press the Z key. All of these methods will clear the undo stack...
Read more >
Undo many times in Vim? - Stack Overflow
You have only 1 level of undo if you are in Vi compatible mode. You are missing out on a number of features...
Read more >
How can I safely undo changes that I may or may not have ...
Show activity on this post. It seems to me the simple answer to this is to press u until you undo a change...
Read more >
How to Implement a Python Stack - Real Python
Now you've decided to undo all three of those changes, so you hit the undo command. It takes the item at the top...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found