bruce@graffiti.UUCP (Bruce Jilek) (03/19/86)
I have used editors in the past that allow you to type a command and get a ruler line at the current position within the document you are editing. For example: 1 2 3 4 5 6 7 8 12345678901234567890123456789012345678901234567890123456789012345678901234567890 This can be very helpful for lining up statements for readable blocks that have extended beyond the bottom of the screen, etc. It used to even be a requirement if you were coding in FORTRAN and/or COBOL. Doesn't vi have this capability? I can't find it in the documentation. I do know that you can use ':#z=' (# = line no.) to bracket a line with lines of minuses, but how about a real ruler? Bruce Jilek
ark@alice.UucP (Andrew Koenig) (03/21/86)
> Doesn't vi have this capability? I can't find it in the documentation. > I do know that you can use ':#z=' (# = line no.) to bracket a line with lines > of minuses, but how about a real ruler? How about ':r ruler' ? Followed by 'u' to get rid of it.
gwyn@brl-smoke.ARPA (Doug Gwyn ) (03/23/86)
In article <123@graffiti.UUCP> bruce@graffiti.UUCP (Bruce Jilek) writes: >I have used editors in the past that allow you to type a command and >get a ruler line at the current position within the document you are editing. >For example: > > 1 2 3 4 5 6 7 8 >12345678901234567890123456789012345678901234567890123456789012345678901234567890 > >This can be very helpful for lining up statements for readable blocks that >have extended beyond the bottom of the screen, etc. It used to even be a >requirement if you were coding in FORTRAN and/or COBOL. > >Doesn't vi have this capability? I can't find it in the documentation. Since one can read in a ruler (stored in a separate file) whenever it is needed, why clutter vi with this as a built-in capability?
rt@cpsc53.UUCP (Ron Thompson) (03/24/86)
> > Doesn't vi have this capability? I can't find it in the documentation. > > I do know that you can use ':#z=' (# = line no.) to bracket a line with lines > > of minuses, but how about a real ruler? > trivia- There used to be a utility called se (screen editor) that came bundled with AT&T Unix - it's in the old System V manual. It did have a nice ruler across the top of the screen. It was the first editor I learned because it was in the book and vi wasn't. I just couldn't bear to use ed on a screen, even though I did have to learn it. -- Ron Thompson AT&T Information Systems Customer Programming (404) 982-4217 Atlanta, Georgia Services Center ..{ihnp4,akgua}!cpsc53!rt (Opinions expressed are mine alone.)