Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Add persistent undo

Open Tobbe opened this issue 8 years ago • 9 comments

  • 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): Feature request

Please implement persistent undo, like what you get when you have set undofile in vim. Being able to undo in a file even if you've closed it first and then reopened it (even when rebooting between closing and reopening) is very convenient 😃

Tobbe avatar May 30 '17 02:05 Tobbe

I'm not sure this is actually possible. Does VSCode allow extensions to persist data in this fashion?

@rebornix @johnfn @xconverge

Chillee avatar Jun 06 '17 17:06 Chillee

You can always save to a file somewhere right?

johnfn avatar Jun 06 '17 21:06 johnfn

would be great to have this feature!

You can always save to a file somewhere right?

the same in Vim, there is undodir option: https://github.com/aliev/vimrc/blob/master/plugin/vimrc.vim#L118

aliev avatar Feb 02 '18 07:02 aliev

Persistent undo is one of the best vim/neovim features at all. It would be great to have something like that in VS Code. Since we already have a neovim integration maybe it could be possible to let neovim take care of saving the undofiles?

tuxflo avatar May 17 '19 07:05 tuxflo

I think we can make persistent undo by modifying local-history and remap the undo and redo key.

We only need a brave hero to implement it

haifengkao avatar Oct 07 '19 06:10 haifengkao

This feature is so useful and even vital once you start using it that it might make sense if it was implemented in VSCode regardless of plugins. It would be a big win for all VSCode users.

iansinnott avatar Mar 13 '20 02:03 iansinnott

Any progress on this?

dbanks12 avatar Jan 11 '23 22:01 dbanks12

I am also looking for this feature....

garrisonz avatar Dec 14 '23 03:12 garrisonz

Persistent undos would be a lifesaver. This is one of the features that I most sorely miss from vim.

musjj avatar May 05 '24 10:05 musjj