home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / editors / 2176 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  3.4 KB

  1. Xref: sparky comp.editors:2176 comp.sys.mac.misc:16184 comp.sys.mac.programmer:15156 comp.sys.mac.wanted:8206
  2. Newsgroups: comp.editors,comp.sys.mac.misc,comp.sys.mac.programmer,comp.sys.mac.wanted
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!crash!alen
  4. From: alen@crash.cts.com (Alen Shapiro)
  5. Subject: Re: good vi editor for the mac
  6. Date: 8 Sep 92 17:39:08 GMT
  7. Message-ID: <alen.715973948@crash>
  8. References: <lawton.715610572@armand> <1992Sep4.192444.24921@cucbs.chem.columbia.edu>     <1992Sep5.221526.10841@uc.msc.edu> <Bu94Kw.4Mz@csn.org>     <D88-JWA.92Sep8123551@black.nada.kth.se> <CKD.92Sep8115511@loiosh.eff.org>
  9. Lines: 64
  10.  
  11. In <CKD.92Sep8115511@loiosh.eff.org> ckd@eff.org (Christopher Davis) writes:
  12.  
  13. >JW> == Jon W{tte <d88-jwa@black.nada.kth.se> 
  14.  
  15. > >> To Tom:  Just what can't you do in MSWord 5.0 that you can do in emacs?
  16.  
  17. > JW> Keyboard macros
  18. > JW> Toggle words
  19. > JW> Execute other program
  20. > JW> Towers of Hanoi (OK, OK)
  21.  
  22. >Read news, send/read email, do blinking-brace matching, do syntax-based
  23. >indentation...
  24.  
  25. SANITY CHECK....SANITY CHECK....BEWARE OF RELIGIOUS ARGUMENTS
  26.  
  27. Which editor you use depends on, what your needs are, what you are used
  28. to, and how much pain you can stand to get your job done. Arguments
  29. about whose is better are a hiding to nowhere. If we restrict ourselves
  30. to sensible utility/facility this thread might not degenerate before
  31. some information is imparted. Here's my $0.02.
  32.  
  33. My text-processing requirements often include powerful replacement/
  34. transformation. I've often missed the regular-expression replacement
  35. provided by "ed/ex" style command line editors. I'd love to see MSWord
  36. provide full "regex" form replacement.
  37.  
  38. As an example (not the only one), try replacing all occurances of
  39.     aaaxxxbbb with cccxxxddd
  40. where xxx can be any set of 3 characters that must be preserved across
  41. the transformation and differ from string-match to string-match. Vi does
  42. this with internal string registers that exist for one command and may
  43. be set on the "find side" and referenced on the "replace side"
  44. of a substitute expression.
  45.  
  46. If you solve this one in word, try doing the same thing for all cases
  47. EXCEPT where "xxx" (above) is equal to "123".
  48.  
  49. the Unix "sed" command is supreme in many of these transformations (that
  50. is not to say that ex can't hack the above transformations though).
  51.  
  52. Does Nissus deal with the above?
  53.  
  54. MSWord though provides a really neat mechanism for extracting a column
  55. of text (vi does not). Try holding down the option key while you drag
  56. the mouse over the middle of a page.
  57.  
  58. I try to use the simplest tool for the given range of tasks that I need
  59. to perform now (where "now" may vary from a minute to several days depending
  60. on whether I'm sending out a letter, writing a book, or programming). Means
  61. I need a set of tools to call upon. I'm not sure if I'd use an editor that
  62. combined ALL my needs. It would likely be too big, cumbersome to use,
  63. and not available on enough platforms to make it worth learning.
  64.  
  65. --alen
  66. alen@crash.cts.com
  67.  
  68. BTW. vi is a very simple editor, when I'm asked to explain it, my answer is:
  69. Learn the cursor movement commands. If you can move to a point in the file,
  70. you can (usually) get your command to range over that block of text defined
  71. by where you are to where your movement command would take you.
  72.  
  73. BTW2. I'd REALLY like to see "elvis" (the vi clone, not the dead dude) on
  74. the Mac. I'll provide the "sublaunch" capability if anyone is porting it.
  75.