On 2012-12-11, sinbad wrote:
> there are two possibilities here, first one of vim
> script is deleting the tmpfile, the other is some cron
> job might be deleting it. in the first case can i put a
> watch on the tmpfile created from with in vim. In the
> latter case, can i force vim to create the tmp directory
> in my homedir rather than in /tmp so that the cron job
> won't have access to it. please suggest ways to achieve
> above.
Somebody suggested earlier a way to put a watch on that tmpfile, but
you apparently don't have permission to do that.
As for putting your tmp directory someplace else,
:help tempfile
says that on Unix, Vim uses the first of this list of directories:
$TMPDIR, /tmp, current-dir, $HOME. Therefore, you could set TMPDIR
in your environment before starting Vim, either by setting it in
your shell's .rc file (e.g., ~/.bashrc) or by setting it as you
start Vim, e.g.,
TMPFILE=~/tmp vim
You could put that in a wrapper script or in an alias:
alias vim='TMPFILE=~/tmp vim'
Regards,
Gary
--
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