chrisbra/SudoEdit.vim — Issue #14: Cannot open undo file for writing
Author: M4T1A5
Created: 2012-01-26 18:01:21+00:00
State: open

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.