‹ BackHN Continuity

Thread

On caring for user data: NeoVim caused Vim undo files to be deleted

384 points · 346 comments · jandeboevrie

  1. RVuRnvbM2e · · focus · HN ↗
    Undo files and persistent undo are not meant to work that way. They are just persistent across process restarts. That's all.

    They live in ~/.cache which is defined as "user-specific non-essential (cached) data".

    Despite this user's impressive résumé, they simply misunderstood the feature.

    1. kazinator · · focus · HN ↗
      In what way is it not a process restart if I stop the process, install/upgrade NeoVim and start a new process?
      1. RVuRnvbM2e · · focus · HN ↗
        It's the part where you upgraded and apparently failed to read the release notes.

        Or in the OPs case, installed a totally different application and was surprised by an incompatibility.

        1. kazinator · · focus · HN ↗
          Nobody should have to read release notes to avoid data loss; there should never be a change such that someone who hasn't read the release notes (or missed a detail in reading them) to avoid such a problem.
        2. soraminazuki · · focus · HN ↗
          You're holding others to a standard that you yourself haven't adhered to. Please go read the release notes. No mention anywhere that old undo data will be deleted.

          <a href="https:&#x2F;&#x2F;neovim.io&#x2F;news&#x2F;2021&#x2F;07&#x2F;" rel="nofollow">https:&#x2F;&#x2F;neovim.io&#x2F;news&#x2F;2021&#x2F;07&#x2F;

          Differences from Vim are also documented, but this issue isn&#x27;t mentioned there either.

          <a href="https:&#x2F;&#x2F;neovim.io&#x2F;doc&#x2F;user&#x2F;vim_diff&#x2F;" rel="nofollow">https:&#x2F;&#x2F;neovim.io&#x2F;doc&#x2F;user&#x2F;vim_diff&#x2F;

          Also, what&#x27;s up with people claiming that the undo files are stored under ~&#x2F;.cache? That&#x27;s completely made up. Or that persistent undo doesn&#x27;t persist edit history, against what the docs say. Utter nonsense.

          <a href="https:&#x2F;&#x2F;neovim.io&#x2F;doc&#x2F;user&#x2F;undo&#x2F;#_5.-undo-persistence" rel="nofollow">https:&#x2F;&#x2F;neovim.io&#x2F;doc&#x2F;user&#x2F;undo&#x2F;#_5.-undo-persistence

          Users don&#x27;t expect their editor to cause data loss after a routine `brew update`. Blaming users for that is unreasonable.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.