Monday, December 3, 2012

Re: vim script can't create /tmp file

Excerpts from sinbad's message of Mon Dec 03 11:47:02 +0100 2012:
> one of the script in my vim environment is not able
> to create a /tmp file, i keep getting the following
> error. This script is invoked every time i write
> the file contents.
>
> Error detected while processing function GenerateTags:
> line 1:
> E484: Can't open file /tmp/vEmReRC/36

To my undestanding each vim instance creates /tmp/vEmReRC like
directory.

tempname() like functions return a new file within that directory.
Vim should cleanup on clean exit in that directory.

If vim can't write to that directory I have no idea what happened, but
you can explore yourself: Try accessing that file: can you touch, read
delete that /tmp/vEmReRC/36 file?

That might give you some insight about what might be going wrong.
Eg if you do rm -fr /tmp/* or such there will be an issue cause Vim won'
t recreate that directory.

Marc Weber

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