‹ BackHN Continuity

Thread

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

384 points · 346 comments · jandeboevrie

  1. fooblaster · · focus · HN ↗
    How does one use persistent undo in vim?
    1. fooblaster · · focus · HN ↗
      Talk about poor duty of care to users... been using him for 20 years and I have to enable it in my vimrc to take effect. So stupid. Why would I want this to be off?

      Such amazing design...

      " Enable persistent undo set undofile

      1. b0ringdeveloper · · focus · HN ↗
        I prefer persistent undo being off. I like being able to hold down u and revert to exactly how the file was before I opened it. (Maybe there's a better way to do this?) With persistent undo on, it just keeps going and going. And if I need long term source control, that's what git is for. With persistent undo off, it's like opening the file creates a checkpoint that I can get back to easily.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.