home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / admin / 7050 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.3 KB

  1. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!hri.com!ukma!kherron
  2. From: kherron@ms.uky.edu (Kenneth Herron)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Help! How do I suppress vi tab substitution?
  5. Keywords: vi tab hate
  6. Message-ID: <1993Jan12.123644.29314@ms.uky.edu>
  7. Date: 12 Jan 93 17:36:44 GMT
  8. References: <1993Jan11.202024.10292@elsouth.uucp>
  9. Distribution: na
  10. Organization: University Of Kentucky, Dept. of Math Sciences
  11. Lines: 19
  12.  
  13. In article <1993Jan11.202024.10292@elsouth.uucp>, john@elsouth.uucp (John White) writes:
  14. >     I'm in Unix Sys V Rel 3.0 Ver 4 and my vi editor has the
  15. > annoying habit of substituting 8 spaces for 1 tab. This is cute,
  16. > but since my indenting is based on 3 spaces and that doesn't
  17. > divide cleanly into 8, I'm often more annoyed than fond of this
  18. > "feature". Is there a way to tunr this off?
  19.  
  20. 1 tab == 8 spaces is the "standard" tab expansion under unix.  Vi
  21. has a "tabstop" parameter which lets you tell it how many spaces
  22. to expand tabs, eg
  23.  
  24.     :set tabstop=3
  25.  
  26. will probably do what you sound like you want.
  27. -- 
  28. Kenneth Herron                                            kherron@ms.uky.edu
  29. University of Kentucky                                       +1 606 257 2975
  30. Dept. of Mathematics "Your ball goes over them, it sails off the edge into a
  31. huge cauldren of fire-breathing dragons."  "And they call this a par three?"
  32.