Tabs in VI

The Silent Killer patkar at cb.ecn.purdue.edu
Wed Jun 29 05:01:17 AEST 1988


> ====================================================================
> Um Kathy, I want autoindent + NO TABS (for C programs and the like).
> ====================================================================

The way I do it is by using the unix utility 'expand' from within
'VI'.  I know this does not prevent insertion of tabs, but it at least 
removes them once you have used the command

!<movement command>expand

The <movement command> may be (, {, 1G etc.  In writing LISP functions, 
for example, I find the command '!%expand' very useful.  


Anant Patkar.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         o
__________________  ____________________________     
/ ) |    |   ___|    |   | |    _|    __|_    /     | patkar at ecn.purdue.edu
 ---| o--|  (   |    `___| |   '     '__| ) o/      | patkar at purche.BITNET
\_) |    |   \  |        | |   `--      |     \     

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the Comp.unix.questions mailing list