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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

max linesize in ex/vi

Status
Not open for further replies.

bigoldbulldog

Programmer
Feb 26, 2002
286
US
Hi -

I have a script using ex that bombs when the input line is too large. Doe's anyone know the maximum linesize for ex (or vi)?

Thanks,
ND [smile]
 
The Vi limit is set via LINE_MAX which I believe is in a file limits.h.
It's often set around 1024-2048.

An alternative editor is VIM (an enhanced version of VI) which I understand does not have a line length limit. Try
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top