Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.
Highlighted
Matthias Feiler
Occasional Visitor

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