1745867 Members
4357 Online
108723 Solutions
New Discussion юеВ

Line too long error

 

Line too long error

in vi editor trying to add a line with about 1000 characters long. But getting the message: Line too long. Appreciate your details.
Knowledge grows with Sharing
2 REPLIES 2
Navied Yousuf
Occasional Advisor

Re: Line too long error

Greetings,

The number of charaters per line limit in vi is 2044, specified by LINE_MAX (value is 2048) that is defined in limits.h header file. This is valid for HP-UX 10.20 and 11.0 releases. It is even valid for 9.x.
Are you sure that you don't have more than 2044 characters in the line.
Last section of vi man page refers to this.
NY
Knowledge is useless unless shared.
Matthias Feiler
New Member

Re: Line too long error

The vi clone VIM has a line length limit
of 2147483647 characters and also features
many other goodies. Binaries ready to be
installed on HP-UX are downloadable from
this website:

http://hpux.cs.utah.edu/hppd/hpux/Editors/vim-5.6/

Matthias