When I've run into this I've just recreated the directory, e.g.,
:!mkdir /tmp/v454263
Regards,
Gary
Yeah, that is the only way around it. Some time ago, I made a patch
(http://groups.google.com/group/vim_dev/browse_frm/thread/728829f95c9ee28a/5d65508d4e21316a?lnk=gst&q=patch+temp+dir#5d65508d4e21316a)
that would make Vim check first, whether the directory still exists and
would create a new one, if it doesn't, but Bram didn't want to include
it.
Hm, I wonder whether one could catch E482 or E483 globally and try to
recreate the missing directory.
regards,
Christian
That would be really useful. It's a shame Bram rejected it.
> Hm, I wonder whether one could catch E482 or E483 globally and try to
> recreate the missing directory.
Nice idea, but I didn't see any autocommand events that were
triggered by errors or anything applicable under ":help
ignore-errors".
Regards,
Gary
I made myself a command to do it some time ago, which you may find
useful:
command! Mktmpdir call mkdir(fnamemodify(tempname(),":p:h"),"",0700)
Ben.
You put the line in your ~/.vimrc ($HOME/_vimrc on Windows, I think) and
it defines a custom command, so when you want to use it, you just issue
:Mktmpdir from the commandline.
Hope that helps!
Ben.