On caring for user data: NeoVim caused Vim undo files to be deleted
Thread
Unofficial Hacker News client; not affiliated with Y Combinator.
On caring for user data: NeoVim caused Vim undo files to be deleted
Unofficial Hacker News client; not affiliated with Y Combinator.
gavinhoward · · focus · HN ↗
Unlike Dr. Chisnall, I started my editor journey on Neovim, so it wasn't a transition that bit me. However, if the format of the persistent undo file is unstable, and Neovim just deletes it when it doesn't recognize the previous format, then it seems conceivable (to me) that an upgrade after changing the format would delete the file too.
Ouch. This is making me think about getting off of Neovim. Yes, FOSS comes as-is, but if there's an alternative...
antonkochubey · · focus · HN ↗
Edit: some great examples in the replies here, thanks! Perhaps I should start using it in editors that support it, never gave it a thought before.
jeremyjh · · focus · HN ↗
It doesn't matter whether or not you can think of a reason you would want to enable it, but it should be pretty trivial to do so. Once you've enabled it, it should work.
dezgeg · · focus · HN ↗
traverseda · · focus · HN ↗
Joker_vD · · focus · HN ↗
PunchyHamster · · focus · HN ↗
Second (for servers), etckeeper
traverseda · · focus · HN ↗
> In these cases we're already not in an ideal world, I don't have good reliable version control or change management in place.
Most of the stuff I work on is properly scripted idempotent deploys, with good backups and all that. Or it's a one-off demo, or a prototype. Not having full undo history is never going to actually kill a project, it's just going to make early stage projects and one-offs more inconvenient.
prerok · · focus · HN ↗
Moreover, the vim history tracking is amazingly advanced. It's almost like a mini version control system. I highly recommend getting to know it.
drfloyd51 · · focus · HN ↗
I can give some as well. IDE crashes. Computer reboots at an undesired time. Even if my work is saved, I am not “finished”. I would like my undo history to extend before file / open time.
schmichael · · focus · HN ↗
kelnos · · focus · HN ↗
I didn't know about persistent undo until seeing this posted here on HN, but now I've enabled it! Of course, turns out it's an unreliable feature on nvim... maybe I'll consider switching back to the original (for that and other reasons).
tommyage · · focus · HN ↗
`:earlier 1d`.
persistant undo is like a second brain to consolidate.