Hacker News new | ask | show | jobs
by johnnypangs 62 days ago
But you still have to share the undodir for both vim and neovim right? If your undo data was that precious why would you gamble the interoperability? You could just have them in different folders and it would be fine.

So the case is, you really need you undo history and want to try out neovim so you just copy paste you vimrc to the new place and accidentally delete your data? I don’t think it’s that bad personally. It’s bound to happen but it’s not automatic.

1 comments

I have a far less sensationalist headline for this which is:

Two programs that save their cache in the same folder causes issues.

That headline would be inaccurate. Persistent undo is different than cache. Cache implies a temporary copy of data whose actual existence is elsewhere. Persistent undo is advertised as persistent, not as temporary.
In practice the feature is as persistent as your last git checkout. There are countless events (including git checkouts, vim recoveries) that simply reset the status of the "persistent" undo. Use a real VCS if you treasure your history as this is just a best effort feature.
"Program that claims to be a drop-in replacement will arbitrarily delete data in ways that the program it replaces doesn't"