Christian Brabandt <[email protected]>:
> The problem is probably, that Vim opened the file for writing,
> truncated it and when writing noticed the error. But at this time, the
> old contents are already gone.

But doesn't Vim first write the contents to a temporary file and then
rename it, at least in cases where the file isn't a symlink? In that
case the temporary file could be deleted instead of renamed if Vim
detects that the writing failed. It would be interesting to know the
value of 'backupcopy' here.

Jan

-- 
-[ OpenPGP key ID: 00A0FD5F ]-
If Jesus had been killed 20 years ago, Catholic school children would be
wearing little Electric Chairs around their necks instead of crosses.
                -- Lenny Bruce

-- 
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

Reply via email to