Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VI Tmp File Too Large Error

2 views
Skip to first unread message

Thomas Dineen

unread,
Nov 3, 2005, 9:56:18 PM11/3/05
to
Gentlepeople:

When I run vi on large files I get the
following error message: "Tmp file too large"

Is there a better alternative editor or vi
based work around for large files?

Thanks for the help.
Thomas Dineen
tdi...@is.netcom.com

Logan Shaw

unread,
Nov 3, 2005, 10:48:45 PM11/3/05
to
Thomas Dineen wrote:
> Gentlepeople:
>
> When I run vi on large files I get the
> following error message: "Tmp file too large"
>
> Is there a better alternative editor or vi
> based work around for large files?

Your /var is probably too small. I can't recall a way to make
vi put temp files in a different place. You could try setting
TMPDIR and see if vi honors that, although I don't think it does.

To my knowledge, if you want a visual editor (and not, say, ed),
then you're going to have to install a third-party editor. If
you want a vi-like editor that can handle larger files, then I
believe that vim should do the trick.

- Logan

Joerg Schilling

unread,
Nov 4, 2005, 5:37:40 AM11/4/05
to
In article <m5Aaf.5410$Rl1....@newsread1.news.pas.earthlink.net>,

Thomas Dineen <tdi...@ix.netcom.com> wrote:
>Gentlepeople:
>
> When I run vi on large files I get the
>following error message: "Tmp file too large"
>
>Is there a better alternative editor or vi
>based work around for large files?

How large is that file?

Do you have anough space in /tmp and /var/tmp?

Most editors do not handle large files at all.
The editors called vi, vim, emacs all stop working
somewhere between 50 MB and 500 MB.

If you like to edit real large files use "ved"

ftp://ftp.berlios.de/pub/ved/

ved is the only known editor that really allows to
edit files > 2 GB.

If you like to edit very large files, you of course need
to define a place where ved can store tmporaty files.

VED_TMPDIR Directory where all files are stored
that are needed for a recover run

VED_FTMPDIR Where the ved "swap" file is located.

If VED_FTMPDIR if missing but VED_TMPDIR is present,
all tmp files are in VED_TMPDIR.


--
EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
j...@cs.tu-berlin.de (uni)
schi...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

Andrew Gabriel

unread,
Nov 4, 2005, 1:57:42 PM11/4/05
to
In article <xSAaf.50031$5e4....@tornado.texas.rr.com>,

Logan Shaw <lshaw-...@austin.rr.com> writes:
> Thomas Dineen wrote:
>> Gentlepeople:
>>
>> When I run vi on large files I get the
>> following error message: "Tmp file too large"
>>
>> Is there a better alternative editor or vi
>> based work around for large files?
>
> Your /var is probably too small. I can't recall a way to make

I suspect vi's workfile hit vi's internal limit.
I think the error text is different if it gets a write error
on the workfile.

> vi put temp files in a different place. You could try setting

IIRC, put following line in ~/.exrc
set directory=/some/large/directory

You can also issue the command to vi as an ex command (preceded
with a colon), but it won't help in that case unless you then
read the large file into vi after issuing the command.

--
Andrew Gabriel

0 new messages