Operating System - HP-UX
1832315 Members
1961 Online
110041 Solutions
New Discussion

Re: vi error=> line too long

 
Mieke Oostveen
New Member

vi error=> line too long

I want to edit an xml file. Because one line is greater than the MAX_LINE in limits.h the error "line too long" appeared.
I think that it isn't possible to change the value of MAX_LINE. Because in the future we have to create more xml files whith long lines, how can we solve this problem. Do i have to use another editor? Will this solve the problem? (emacs/pico/vim) Is there a special editor for XML?
What do you advise.
Feel good
4 REPLIES 4
Clemens van Everdingen
Honored Contributor

Re: vi error=> line too long

Hi,

For hp-ux 11.11 you could load a patch to solve this.

PHCO_27057

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
T G Manikandan
Honored Contributor

Re: vi error=> line too long

YOu are right

It is hitting the 2048 limit on a single line
If you are using 11.11 then you can use this patch
PHCO_27057


you can try using vim from the hp porting center.
http://hpux.connect.org.uk/hppd/hpux/Editors/vim-6.1/


Try using fold.check for the man pages of fold.


Thanks



Darrell Allen
Honored Contributor

Re: vi error=> line too long

Hi,

Use CDE's text editor (dtpad).

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Kellogg Unix Team
Trusted Contributor

Re: vi error=> line too long

Sometime back, I also ran into this issue. vi is limited to 2048 characters/line. The patch described above for hp-ux 11.11 will take that to 4096 characters/line, I believe.

The option is vim but I haven't installed it.

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)