home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / editors / 1978 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  573 b 

  1. Path: sparky!uunet!munnari.oz.au!samsung!crackers!jjmhome!applix!jimr
  2. From: jimr@applix.com (Jim Rouleau [ext 256])
  3. Newsgroups: comp.editors
  4. Subject: Counter in VI?
  5. Message-ID: <1623@applix.com>
  6. Date: 13 Aug 92 14:15:38 GMT
  7. Organization: Applix, Inc., Westboro, MA
  8. Lines: 22
  9.  
  10. Is there any way to implement a counter in VI?
  11. What I'd like to do is take something like this:
  12.  
  13.   #define a 1
  14.   #define b 2
  15.   #define c 3
  16.     .
  17.     .
  18.   #define z 26
  19.  
  20.   to become
  21.  
  22.   #define a 0
  23.   #define b 1
  24.   #define c 2
  25.     .
  26.     .
  27.   #define z 25
  28.  
  29. Any way to do this besides manually??
  30.  
  31.    jimr
  32.