home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.editors:2176 comp.sys.mac.misc:16184 comp.sys.mac.programmer:15156 comp.sys.mac.wanted:8206
- Newsgroups: comp.editors,comp.sys.mac.misc,comp.sys.mac.programmer,comp.sys.mac.wanted
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!crash!alen
- From: alen@crash.cts.com (Alen Shapiro)
- Subject: Re: good vi editor for the mac
- Date: 8 Sep 92 17:39:08 GMT
- Message-ID: <alen.715973948@crash>
- 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>
- Lines: 64
-
- In <CKD.92Sep8115511@loiosh.eff.org> ckd@eff.org (Christopher Davis) writes:
-
- >JW> == Jon W{tte <d88-jwa@black.nada.kth.se>
-
- > >> To Tom: Just what can't you do in MSWord 5.0 that you can do in emacs?
-
- > JW> Keyboard macros
- > JW> Toggle words
- > JW> Execute other program
- > JW> Towers of Hanoi (OK, OK)
-
- >Read news, send/read email, do blinking-brace matching, do syntax-based
- >indentation...
-
- SANITY CHECK....SANITY CHECK....BEWARE OF RELIGIOUS ARGUMENTS
-
- Which editor you use depends on, what your needs are, what you are used
- to, and how much pain you can stand to get your job done. Arguments
- about whose is better are a hiding to nowhere. If we restrict ourselves
- to sensible utility/facility this thread might not degenerate before
- some information is imparted. Here's my $0.02.
-
- My text-processing requirements often include powerful replacement/
- transformation. I've often missed the regular-expression replacement
- provided by "ed/ex" style command line editors. I'd love to see MSWord
- provide full "regex" form replacement.
-
- As an example (not the only one), try replacing all occurances of
- aaaxxxbbb with cccxxxddd
- where xxx can be any set of 3 characters that must be preserved across
- the transformation and differ from string-match to string-match. Vi does
- this with internal string registers that exist for one command and may
- be set on the "find side" and referenced on the "replace side"
- of a substitute expression.
-
- If you solve this one in word, try doing the same thing for all cases
- EXCEPT where "xxx" (above) is equal to "123".
-
- the Unix "sed" command is supreme in many of these transformations (that
- is not to say that ex can't hack the above transformations though).
-
- Does Nissus deal with the above?
-
- MSWord though provides a really neat mechanism for extracting a column
- of text (vi does not). Try holding down the option key while you drag
- the mouse over the middle of a page.
-
- I try to use the simplest tool for the given range of tasks that I need
- to perform now (where "now" may vary from a minute to several days depending
- on whether I'm sending out a letter, writing a book, or programming). Means
- I need a set of tools to call upon. I'm not sure if I'd use an editor that
- combined ALL my needs. It would likely be too big, cumbersome to use,
- and not available on enough platforms to make it worth learning.
-
- --alen
- alen@crash.cts.com
-
- BTW. vi is a very simple editor, when I'm asked to explain it, my answer is:
- Learn the cursor movement commands. If you can move to a point in the file,
- you can (usually) get your command to range over that block of text defined
- by where you are to where your movement command would take you.
-
- BTW2. I'd REALLY like to see "elvis" (the vi clone, not the dead dude) on
- the Mac. I'll provide the "sublaunch" capability if anyone is porting it.
-