Page 1 of 1

View AutoIndented Files

Posted: Fri Feb 16, 2001 9:40 pm
by Frank P
is there any way to view a file that was created on Unix vi with autoindent on? This means that when an open brace is encountered, the subsequent line is indented one tab space without the tab being inserted.

Re: View AutoIndented Files

Posted: Tue Feb 20, 2001 11:07 pm
by Randall McDougall
The problem is that there's no way to know (in a text file) if that option was on or not... a Macro could emulate it I suppose ... add the spaces when you start and have another to take them off ...

To do it the way you want however you'd need some provision in the Document Class definitions -- either some way of doing custom indenting builtin, or a way to autorun a Macro at startup/shutdown for any files loaded in that class (which wouldn't be a bad feature in general actually).