1

When vim uses the shell given a colon !command, it does so through the /tmp filesystem. How do you force vim to use ~/.vim/tmp/ instead? It also uses /tmp for help files when zcat is required to read some of the manuals.

TMPDIR doesn't work for this case.

2

Have you tried setting the TMPDIR environment variable? That's the standard way (across most "Unix style" programs I've had to worry about it for) of specifying an alternate location for temporary files.

  • Actually, this works. I was thinking you were referring to vim's 'directory' setting. Thanks. – atx Jul 23 '11 at 11:57
  • I've clarified my wording to make it clear I was referring to the env var. – womble Jul 23 '11 at 12:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.