On Sunday, 13 May, 2012 at 13:31:38 BST, Christian Brabandt wrote:
You get a warning, that writing failed and the file may possibly be
corrupt. Vim even tells you, what you should do to write without
converting the content. What else should Vim do?
I don't understand, what Vim should possibly restore?
I think you're both right. He should have read the warning message, but also
I'm surprised that vim modified the file before being given any instruction to
write it. Usually, when you open a file in vim (or any editor) and start making
changes, you can cat the file and see that it hasn't been modified - until told
to save it (manually or autosave) - so I'm a bit surprised that vim actually
modified the file in this scenario. I'd have expected it to read it into
memory, convert it (in memory) if necessary, and not save it until told to do
so. So it's not a matter of restoring anything, but rather one of not
overwriting in the first place, because no write command was issued.
--
.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php