1

I have a vim file where every time I open it, it gives me a red message:

E823: Not an undo file: <filename>

Followed by:

Press ENTER of type command to continue

Doesn't appear to be an error, but it is very annoying. I've read about persisted undo files in newer versions of vim. But I don't know how it relates to this. So: - What is this trying to tell me? - How do I get rid of it?

  • Posting as a comment as there isn't enough info, so it's just a guess. Looks like there's a leftover undo file for the specific file you're editing, but it's empty. Check for files ending in ~ in the file folder or, if you have persistent undo enable, in the undodir directory. If it's really empty, you can safely remove it to get rid of the error message. – Mr Shunz Apr 16 '19 at 13:39
  • Hey, that worked. Thank you! You can post as answer if you like. – Neil Apr 16 '19 at 20:52
3

Looks like there's a leftover undo file for the specific file you're editing, but it's empty.

Check for files ending in ~ in the file folder or, if you have persistent undo enable, in the undodir directory (should be in your .vimrc if configured).

If it's really empty, you can safely remove it to get rid of the error message.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.