tabs in vi

Christopher F. Bryden bryden at vax1.acs.udel.EDU
Tue Aug 22 04:53:27 AEST 1989


In article <7901 at ardent.UUCP> landay at ardent.com (James A. Landay) writes:
}Is there a way to make it so that when ever I hit the TAB key
}in 'vi' that I get 4 spaces rather than an actual tab?  I would
}rather not have to run expand after running vi, as I would only
}want to do that if I actually changed the file.

This isn't what you want to know, but...
:%s/\	/\ \ \ \ /g
      ^   ^ ^ ^ ^
     tab   four spaces
-- 
arpa  : bryden at vax1.acs.udel.edu |  Just another person with his foot so far
bitnet: AIT05167 at ACSVM        |  down his throat that he's sh*ting shoelaces.
plato : bryden/itpt/udel          ------------------ Who?  Me?  Naw...  Yes?
uucp  : ...{unidot,uunet}!cfg!udel!udccvax1!bryden | You've got to be kidding.



More information about the Comp.unix.questions mailing list