Wednesday, December 5, 2012

Re: vim script can't create /tmp file

On Wed, December 5, 2012 09:37, sinbad wrote:
> any other pointers on how to get rid of this error.
> it's became very annoying.

Have you checked all your cronjobs and scripts, that you run?
Can you eliminate, that root doesn't run some jobs, that clean /tmp?

I once made a patch, that changed Vims behaviour to check everytime,
whether the temp directory is still valid and if not re-create it,
but Bram didn't want to include it.

Since this happens usually only very rarely, I have this command
in my .vimrc:
" In case /tmp get's clean out, make a new tmp directory for vim
:command! Mktmpdir call mkdir(fnamemodify(tempname(),":p:h"),"",0700)

regards,
Christian

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

No comments:

Post a Comment