Vim: Add persistent undo

Created on 30 May 2017  路  6Comments  路  Source: VSCodeVim/Vim

  • 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 馃槂

areundo kinfeature

Most helpful comment

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.

All 6 comments

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

@rebornix @johnfn @xconverge

You can always save to a file somewhere right?

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

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?

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ACollectionOfAtoms picture ACollectionOfAtoms  路  3Comments

lucastheisen picture lucastheisen  路  3Comments

jaredly picture jaredly  路  3Comments

waltiam picture waltiam  路  3Comments

orn688 picture orn688  路  3Comments