limiting resources

Tony Facca fsfacca at LERC08.LERC.NASA.GOV
Sat Sep 30 00:12:26 AEST 1989


Tom Haapanen <mailrus!jarvis.csri.toronto.edu!utgpu!watmath!maytag!vlsi!watale!tom at tut.cis.ohio-state.edu>  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 at lerc08.lerc.nasa.gov
-----------------------------------------------------------------------------



More information about the Comp.sys.sgi mailing list