Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!iuvax!pur-ee!pc.ecn.purdue.edu!cb.ecn.purdue.edu!patkar
From: patkar@cb.ecn.purdue.edu (The Silent Killer)
Newsgroups: comp.unix.questions
Subject: Tabs in VI
Message-ID: <399@cb.ecn.purdue.edu>
Date: 28 Jun 88 19:01:17 GMT
Organization: Purdue University Engineering Computer Network
Lines: 25


> ====================================================================
> 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

!expand

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


Anant Patkar.


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

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