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 u
in Normal mode in an editor window. Every single action in the undo stack was undone. Here’s a GIF:
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:
- Created 6 years ago
- Reactions:714
- Comments:161 (33 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Added this code to my settings.json solved the problem. The above solution added at
vim.otherModesKeyBindings
does not work for me.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