When I use vi to analyze log files, it sometimes is stuck with the error: ‘Line too long’. I can watch the file using more, but that’s not what I want.
The command view leads to the same result and less is not installed.
System is HP-UX v B.11.31 U ia64
- What does this error mean? Does vi really have a limitation on how many characters per line is allowed?
- Is there a workaround how to get the files open and displayed in vi anyway?
(1) Apparently so 🙂
I’ve never run into a limitation in
vim(a) before but it may be that thevishipping with HPUX is notvim.(2) What sort of analysis are you doing on log files with
vi?This is the sort of task perfectly suited to text processing tools like
sed,awkandPerl, in order of increasing awesomeness.(a): You may want to consider grabbing
vimif you don’t have it already. From thevi_diffpart of the documentation (differences betweenviandvim):