Undo is part of the document.
An Unsung essay uses persistent editor history to argue for a duty of care toward user data. Its sharpest example is ordinary: a developer returns after a reboot, walks back through old changes, finds the lost fragment, and copies it into the current file.[1]
The point is larger than Vim or Neovim. If a tool records the path that produced a document, that history can become valuable data. Deleting it during an upgrade or cleanup requires the same caution as deleting the document itself.
A history feature becomes a data promise when people depend on it for recovery.
History is a tree, not a back button.
Vim documents undo branches, time-based movement with :earlier and :later, explicit undo-file commands, and automatic persistence through the undofile option.[2] Neovim documents the same branch and persistence model. Its current manual also states that an existing file with the wrong undo-file signature is not overwritten unless the command is forced.[3]
That matters because the field note relays a disputed report about undo-file compatibility. The manuals prove the documented contract. They do not prove what happened in one upgrade path. Treat the incident claim as a warning to test migration, not as a settled verdict on either editor.
Make the recovery path visible.
A good recovery system answers four questions before trouble. What is saved? How many versions remain? What survives a restart? What action restores an older state without destroying the current one?
The bench below turns those questions into behavior. It stores up to eight snapshots for this page in localStorage, which MDN describes as origin-specific data that persists across browser sessions.[4] The current draft becomes a new snapshot before an older one is restored, so inspection does not erase the latest work.
Persistence is not backup.
Browser storage can be blocked. Private browsing clears it when the last private tab closes. Clearing site data removes it. The demo says this at the control, not in a buried policy.
Production tools need more: format versions, migration tests, retention rules, corruption handling, storage failure alerts, and an export path. A green save lamp means one write completed. It does not mean the data has a second copy.