Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Cannot open undo file for writing #14

Closed
M4T1A5 opened this Issue January 26, 2012 · 8 comments

3 participants

Matias Kangasjärvelä chrisbra Chris Yip
Matias Kangasjärvelä

Trying to write something to a directory where the user does not have write permission (say /etc) you get something like this:

  1. Insert some text
  2. Try to save as /etc/foo
  3. Error: E828: Cannot open undo file for writing: /etc/.foo.un~

It still writes the file, but you lose all content from the buffer and have to reopen if you want to edit more.

chrisbra
Owner
Chris Yip

@chrisbra you mean the "persistence undo" feature causes this error?
If yes, I think it's a little wired, because of I didn't enable this feature, and never saw any .foo.un~ file.

chrisbra
Owner
Chris Yip

Tried, I got nothing.

With

:verbose set fileencoding

I got:

fileencoding=utf-8
    Last set from ~/.vimrc
chrisbra
Owner
chrisbra
Owner
Chris Yip

Perfect!
If "persistence undo" is disabled, there's no error message at all.
Just save files silently.

Matias Kangasjärvelä

Yes the problem seems to be fixed for me too! This is great because now i can use this plugin :)

chrisbra chrisbra closed this April 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.