home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / editors / 2785 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.2 KB  |  61 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!princeton!sheps!bvaughan
  3. From: bvaughan@sheps.Princeton.EDU (Barbara Vaughan)
  4. Subject: Re: Arbitrary text blocks (Was: VI??? GROSS!)
  5. Message-ID: <1992Nov17.145011.24541@Princeton.EDU>
  6. Originator: news@nimaster
  7. Sender: news@Princeton.EDU (USENET News System)
  8. Nntp-Posting-Host: sheps.princeton.edu
  9. Organization: Princeton University
  10. References: <1992Nov16.065935.27173@rc.nokia.fi> <1992Nov16.221338.42264@datamark.co.nz>
  11. Date: Tue, 17 Nov 1992 14:50:11 GMT
  12. Lines: 47
  13.  
  14. In article <1992Nov16.221338.42264@datamark.co.nz> david@datamark.co.nz (David Rowland) writes:
  15. >
  16. >I agree. I though vi was used for editing programs and text files.  If
  17. >any one is looking for something which allows selecting rectangle
  18. >blocks and columns, shouldn't they be using a word processor or a
  19. >spread sheet???  
  20. >
  21.  
  22. Back in the days when I mostly worked with MSDOS and had a good editor
  23. that handled rectangular blocks easily, I used to use it to prepare data
  24. so I COULD read it into a spreadsheet or word processor.  For instance, if
  25. I have a file  of formatted data:
  26.  
  27. 123456789
  28. 987654321
  29.  
  30. I can use my editor to insert a column of blanks in front of each field so
  31. it can be read into a spreadsheet program:
  32.  
  33. 12 34 56 78 9
  34. 98 76 54 32 1
  35.  
  36. Or if I have some ugly SPSS CROSSTAB output, where cells are separated by
  37. dashes, plus signs and vertical bars:
  38.  
  39.    1 | 23 |
  40. -----+----+
  41.      |    |
  42.    3 | 45 +
  43. -----+----+
  44.  
  45. I can get rid of those  vertical bar columns in a jiffy with a good
  46. editor, so that I can do the rest of the job of making a nice document in
  47. WordPerfect. 
  48.  
  49. I also found this feature useful when writing programs.  Let's say I have
  50. a section of code I decide to make conditional, so I want to indent it to
  51. make an "if.. then.." block.  I just insert a column of blanks in front of
  52. that section of code.
  53.  
  54. There are other ways of doing all these things, but if you've ever used an
  55. editor that handles column blocks easily and quickly, believe me, you'll
  56. find lots of uses for the feature.  Kedit recognized column blocks, line
  57. blocks and "sentence blocks", and once blocked, you could copy, move,
  58. delete, or fill with a character.
  59.  
  60. Barbara Vaughan
  61.