Path: utzoo!attcan!uunet!cs.utexas.edu!swrinde!ucsd!ucbvax!LERC08.LERC.NASA.GOV!fsfacca
From: fsfacca@LERC08.LERC.NASA.GOV (Tony Facca)
Newsgroups: comp.sys.sgi
Subject: Re: limiting resources
Message-ID: <8909291412.AA13345@lerc08.lerc.nasa.gov>
Date: 29 Sep 89 14:12:26 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The Internet
Lines: 26


Tom Haapanen   writes:

> Well, we have /tmp on a separate partition (the root partition) with normally
> about 8.5 MB of free space.  But the downside of this is that I can not vi
> a one-megabyte ascii file!  The temp file would be about 9 MB, I think!
> 
> Does anyone know why vi creates such monster temp files?  Can't this be
> fixed (by someone who has source)?

A workaround might be to set the environment variable EXINIT to change the
default directory (/tmp) which vi uses when it starts up.  I have plenty of 
disk space available in a directory called /usr/tmp on a separate partition, 
so if I enter the commend:

      setenv EXINIT  'set directory=/usr/tmp'

from the C Shell, I can once again "vi" large files.  This doesn't explain
WHY vi creates such large temp files, but it might help someone.

--
-----------------------------------------------------------------------------
Tony Facca                     |     phone: 216-433-8318
NASA Lewis Research Center     |    
Cleveland, Ohio  44135         |     email: fsfacca@lerc08.lerc.nasa.gov
-----------------------------------------------------------------------------