Line too long error (75 Views)
Reply
Advisor
Milan Muralidharan
Posts: 17
Registered: ‎05-11-2000
Message 1 of 3 (75 Views)

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
Occasional Advisor
Navied Yousuf
Posts: 7
Registered: ‎10-30-1997
Message 2 of 3 (75 Views)

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.
Occasional Visitor
Matthias Feiler
Posts: 1
Registered: ‎12-20-1999
Message 3 of 3 (75 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.