Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!think!mit-eddie!genrad!decvax!mcnc!ece-csc!uvacs!edison!jso From: jso@edison.UUCP (John Owens) Newsgroups: net.unix-wizards Subject: Re: VI(1) vs. the world Message-ID: <878@edison.UUCP> Date: Thu, 16-Oct-86 10:36:34 EDT Article-I.D.: edison.878 Posted: Thu Oct 16 10:36:34 1986 Date-Received: Wed, 22-Oct-86 03:42:49 EDT References: <4327@brl-smoke.ARPA> <357@maynard.UUCP> <113@twg-ap.UUCP> <523@epimass.UUCP> Organization: General Electric Company, Charlottesville, VA Lines: 30 In article <523@epimass.UUCP>, jbuck@epimass.UUCP (Joe Buck) writes: > In article <3772@umcp-cs.UUCP> chris@umcp-cs.UUCP (Chris Torek) writes: > >>In article <113@twg-ap.UUCP> narayan@twg-ap.UUCP (Narayan Mohanram) writes: > >>"40a -" to be able to make an 80 column dashed line. > >Making a dashed line is more difficult. Vi has a major advantage > >over Emacs here. > I'm surprised at you, Chris. An old Emacs hand like you should know > that ESC 8 0 - makes an 80 column dashed line [....] > - Joe Buck {hplabs,fortune}!oliveb!epimass!jbuck, nsc!csi!epimass!jbuck Please note that "40a -" inserts " -" 40 times, not "-" 80 times. The only way to do that in Emacs (without writing a function) is "^X( -^X)40^Xe", 11 keystrokes, and lots of controlling and shifting. And don't forget that the vi command set is orthogonal and object-based. You not only have "d " (same as x) "dw" "dW" "dd", you also can also do "d0" (delete to beginning of line) "d$" (delete to end of line) "d)" (delete to end of sentence (or s-expr in lisp mode)) "d]]" (delete to end of nroff section), and just about anything else you can think of. Even things like "d'a" or "d`a" (delete to mark a) and "d15G" (delete to line 15) and "d/abc" (delete to the pattern abc) work. (And they can all be repeated....) vi's not Emacs, but it is an amazing editor. I use both, depending on what I am doing. I have even switched between the editors while editing the same file. As has been said before, they're both tools to do whatever it is you want to do. John Owens General Electric Company - Charlottesville, VA jso@edison.GE.COM old arpa: jso%edison.GE.COM@seismo.CSS.GOV +1 804 978 5726 old uucp: {seismo,decuac,houxm,calma}!edison!jso