Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble with vi

Status
Not open for further replies.

siswjh

MIS
Dec 6, 2001
63
US
The file in question is roughly 86Mbytes. When I try to open the file with vi it just kinda sits there. Then I will escape out and it will show me the last 10 or 12 lines and below that it says tmp file to large. The vi man page says it can handle files that are close to 2Gbytes. Does anybody have any idea what is wrong.

Thanks
Jesse
 
One more thing I did a wc -l on the file and it has a little over a million lines. I don't know if this could be the problem.
 
When vi is fired up it tries to open a temporary file which is usually /var/tmp/Exnnnn

Do you have enough space in the filesystem which holds /var/tmp ?

 
To check your temp directory
open an 'ex' session then enter 'set all'
This will list all your editor settings.
Your temp directory is the 'directory' value
If you need to change your temp directory
enter 'set directory=/temp_dir_name'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top