I have to look through logfiles where lines are several hundred characters long and if I open the log in Vi it automatically word wraps the line. In Vim you can use the -nowrap option to stop this, but how can you do this in Vi?
I ask because I don't want to see the whole line, just the first few characters... but I do want to see the next line directly below.
Sounds like you're trying to run cut from within vi itself in command mode (i.e. you've done :cut). Whilst you can run commands within vi
i.e. <ESC>:!ls -l | more, the example Jim has given you is intended for use at the command line. "more" itself will allow you to search (using / much like vi).
Thanks... this goes much of the way towards perfection!!
the cut tool is producing good results using:
cut -c -158 <filename> | more
or from within Vi:
:%!cut -c -158
Think i prefer the latter, you can use :u to reverse changes...
So I can see my info arranged on a line by line basis, from this quickly see correct or incorrect operations, and then use :u to scroll into a particular line...
not bad, but in Vi we conclude that there is no horizontal scroll or line arranger?