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

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!comp.vuw.ac.nz!ferrari.datamark.co.nz!david
  3. From: david@datamark.co.nz (David Rowland)
  4. Subject: Re: Arbitrary text blocks (Was: VI??? GROSS!)
  5. Message-ID: <1992Nov17.205808.18435@datamark.co.nz>
  6. Date: Tue, 17 Nov 1992 20:58:08 GMT
  7. References: <1992Nov16.065935.27173@rc.nokia.fi> <1992Nov16.221338.42264@datamark.co.nz> <1992Nov17.145011.24541@Princeton.EDU>
  8. Organization: Datamark International Ltd.
  9. Lines: 73
  10.  
  11. In article <1992Nov17.145011.24541@Princeton.EDU> bvaughan@sheps.Princeton.EDU (Barbara Vaughan) writes:
  12. >In article <1992Nov16.221338.42264@datamark.co.nz> david@datamark.co.nz (David Rowland) writes:
  13. >>
  14. >>I agree. I though vi was used for editing programs and text files.  If
  15. >>any one is looking for something which allows selecting rectangle
  16. >>blocks and columns, shouldn't they be using a word processor or a
  17. >>spread sheet???  
  18. >>
  19. >
  20. >Back in the days when I mostly worked with MSDOS and had a good editor
  21. >that handled rectangular blocks easily, I used to use it to prepare data
  22. >so I COULD read it into a spreadsheet or word processor.  For instance, if
  23. >I have a file  of formatted data:
  24. >
  25. >123456789
  26. >987654321
  27. >
  28. >I can use my editor to insert a column of blanks in front of each field so
  29. >it can be read into a spreadsheet program:
  30. >
  31. >12 34 56 78 9
  32. >98 76 54 32 1
  33. >
  34.  
  35. A simple QBasic program will do this job nicely now-a-days.
  36.  
  37. >Or if I have some ugly SPSS CROSSTAB output, where cells are separated by
  38. >dashes, plus signs and vertical bars:
  39. >
  40. >   1 | 23 |
  41. >-----+----+
  42. >     |    |
  43. >   3 | 45 +
  44. >-----+----+
  45. >
  46. >I can get rid of those  vertical bar columns in a jiffy with a good
  47. >editor, so that I can do the rest of the job of making a nice document in
  48. >WordPerfect. 
  49. >
  50.  
  51. Wouldn't a simple replace "|" with "" do the job???
  52.  
  53.  
  54. >I also found this feature useful when writing programs.  Let's say I have
  55. >a section of code I decide to make conditional, so I want to indent it to
  56. >make an "if.. then.." block.  I just insert a column of blanks in front of
  57. >that section of code.
  58. >
  59.  
  60. Are you saying you don't format the code as you write it???  Most
  61. editors come with automatic indentation anyway.
  62.  
  63. >There are other ways of doing all these things, but if you've ever used an
  64. >editor that handles column blocks easily and quickly, believe me, you'll
  65. >find lots of uses for the feature.  Kedit recognized column blocks, line
  66. >blocks and "sentence blocks", and once blocked, you could copy, move,
  67. >delete, or fill with a character.
  68. >
  69. >Barbara Vaughan
  70.  
  71. The main point of the argument is that when you are editing a program
  72. or data files, you require the block movement of entire lines.  As for
  73. formatting code, I find the best time to do this is as the code is
  74. being entered.  If more code is added that makes the code unreadable
  75. where indentation is concerned, there are a lot of code formatting
  76. programs around to do this.
  77.  
  78. Cheers.
  79. -- 
  80. | David Rowland       | The British are using New Zealanders.  They must |
  81. | Datamark Intl Ltd   | really mean business !                           |
  82. | Wellington          |      -  General Rommel During Northern African   |
  83. | NEW ZEALAND         |         Campaign WWII.                           |
  84.