home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / editors / 2833 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  2.0 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!rutgers!njitgw.njit.edu!eies2.njit.edu!ken
  2. From: ken@eies2.njit.edu (Kenneth  Ng)
  3. Newsgroups: comp.editors
  4. Subject: Re: VI??? GROSS!
  5. Message-ID: <1992Nov21.171223.12976@njitgw.njit.edu>
  6. Date: 21 Nov 92 17:12:23 GMT
  7. References: <1992Nov13.192831.29277@cs.wisc.edu: <1992Nov13.195845.26399@chpc.utexas.edu> <Bxpxov.7Hx@chinet.chi.il.us>
  8. Sender: news@njit.edu
  9. Organization: NJIT - EIES2
  10. Lines: 27
  11. Nntp-Posting-Host: eies2.njit.edu
  12.  
  13. In article <Bxpxov.7Hx@chinet.chi.il.us: les@chinet.chi.il.us (Leslie Mikesell) writes:
  14. :In article <1992Nov13.195845.26399@chpc.utexas.edu> michael@chpc.utexas.edu (Michael Lemke) writes:
  15. :>>This could give you problems with lining up columns.
  16. :>>An easier way is to pipe the paragraph through awk:
  17. :>>    !} awk '{ printf "\%10s\%10s\%20s\n", $3, $2, $1}'
  18. :>>    or  :10,14 ! awk '{ printf "\%10s\%10s\%20s\n", $3, $2, $1}'
  19. :>Oh boy!  And this you call a screen editor?  (That was what started the 
  20. :>thread).
  21. :Don't forget that this is absolutely the most powerful method any editor
  22. :can provide since it doesn't demand the author to anticipate what you
  23. :are going to need.  You can put the input to *any* program in your
  24. :edit buffer and filter it through the program to get the output.
  25.  
  26. I would say that the real most powerful ability in an editor is the ability
  27. to write REAL macro programs to do things the authors never thought of.  Another
  28. useful ability is the ability to call the editor as a subroutine, send it
  29. commands, and get return data back. IBM's XEDIT, Univac's EDT, EIES1 +sp,
  30. and GNU emacs are examples of what I consider to have these capabilities.
  31.  
  32. Note: I do not consider vi's :map facility to be real macros, unless one can
  33. program in if/then/else and while/do loops in something that does not look
  34. too much like line tranmission noise.
  35.  
  36. -- 
  37. Kenneth Ng
  38. AT&T vs BSDI lawsuit: The Ethnic Cleansing of the computer world.
  39. This signature is *NOT* the intellectual property of USL.
  40.