[ale] OT: VI editing of large files.
Alan Stewart
astewart at layton-graphics.com
Mon Jul 21 10:57:58 EDT 2003
I agree with Ray, I've used vim to edit 250Mb+ files before. You're
hitting a limitation in your system/environment, not a limit in vim.
Ray Knight wrote:
>On Sun, 2003-07-20 at 13:49, Geoffrey wrote:
>
>
>>Adrin wrote:
>>
>>
>>>I have a need to edit a very large file. on the Plus size of 43 megs. Vi gives me an
>>>error message that the /tmp file is to large. I know/think there is a way around this I
>>>just don't know. Is there anyone out there that knows?
>>>
>>>
>>One possibility is to use split to break the file into more manageable
>>chunks, then cat the parts back together after you're done editing.
>>
>>You should be able to use either 'ed' or 'sed' to edit such large files.
>>'sed' if you've got specific small changes, ed if you need a more
>>interactive editing environment.
>>
>>
>>
>
>You're running out of disk space in your /tmp directory. If you have
>space available elsewhere (for instance perhaps you have more available
>disk space in /home) you could do the following:
>
># TMP=/home vi fileyouwanttodedit
>
>This will tell vi to use the /home directory for temporary files.
>
>Ray
>
>
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>
>
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list