[comp.unix.questions] A 'vi' question.

ljz@fxgrp.UUCP (Lloyd Zusman) (06/13/88)

I posted this question a few days ago, but due to problems with news
at our site, I doubt it got out.  If it did, please excuse the
double posting:

I seem to remember that there is some way to store tab settings in a
file such that 'vi' can read them.  If I'm not mistaken, I've seen
cases where such tab settings are stored inside of a comment at or
near the top line of a file in some format or another that 'vi' can
understand.  Unfortunately, I can't find any such examples now, and I
can't for the life of me remember or figure out what the syntax might
be.  The man pages don't help.

Can anyone enlighten me about this?  Perhaps this is an obsolete
feature of 'vi', or one that only appears in certain releases.  Does
anyone know?

And *please*, I'm not interested in hearing how to do this via a shell
script or by any other clever means ... I can already think of a
couple ways to set 'vi' tabs in a file-specific manner, and I don't
want to waste net bandwidth with a bunch of responses like "Why do you
want to do it that way?  Why not do such-and-such: ...".  I am only
interested in whether or not 'vi' can read tab settings from the file
it is editing, and if so, how to set this up.

Try replying via netmail, but there's a chance the mail will bounce due
to our neurotic mailer ... I'll post a summary of whatever I can find
out.  This might be of general interest, however, so if you can't seem
to get the mail to me, perhaps an answer here would be in order.

Thank you very much in advance.

--
  Lloyd Zusman                          UUCP:   ...!ames!fxgrp!ljz
  Master Byte Software              Internet:   ljz%fx.com@ames.arc.nasa.gov
  Los Gatos, California               or try:   fxgrp!ljz@ames.arc.nasa.gov
  "We take things well in hand."