E325 and W13 when saving a new file (passed on command line) #2

blueyed opened this Issue Nov 11, 2011 · 2 comments


None yet

2 participants

blueyed commented Nov 11, 2011

I have started vim baz, added some contents and then saved it using SudoWrite directly.

This results in the following error:

Error detected while processing function SudoEdit#SudoDo..SudoEdit#SudoWrite:
line   20:
Press ENTER or type command to continue
W13: Warning: File "baz" has been created after editing started
[O]K, (L)oad File: 

Vim 7.3.315.


Thanks for reporting. It's not really an error, Vim just tells you, that the file has been modified/created outside of vim and that is what is done by the external super user command. I made a fix, that vim doesn't this message anymore.
This should be done with rev: eebf44b

@chrisbra chrisbra closed this Dec 6, 2011
blueyed commented Dec 6, 2011

This appears to be back now.. using d6b1203

@blueyed blueyed added a commit to blueyed/SudoEdit.vim that referenced this issue Dec 6, 2011
@blueyed blueyed Only set the filename using `:f` when writing to another file.
Fixes: #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment