Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!caip!clyde!cuae2!ltuxa!cuuxb!mwm From: mwm@cuuxb.UUCP (Marc W. Mengel) Newsgroups: net.unix-wizards Subject: Re: VI(1) vs. the world Message-ID: <847@cuuxb.UUCP> Date: Wed, 8-Oct-86 14:42:20 EDT Article-I.D.: cuuxb.847 Posted: Wed Oct 8 14:42:20 1986 Date-Received: Thu, 9-Oct-86 06:13:18 EDT References: <4327@brl-smoke.ARPA> <357@maynard.UUCP> <113@twg-ap.UUCP> Reply-To: mwm@cuuxb.UUCP (Marc W. Mengel) Followup-To: net.unix-wizards Organization: AT&T-IS, Software Support, Lisle IL Lines: 29 Keywords: religion,editors, emacs,vi Summary: you CAN do keyboard macros in vi In article <113@twg-ap.UUCP> narayan@twg-ap.UUCP (Narayan Mohanram) writes: >> >> What's more, vi completely lacks the following features I find >> indispensable: >> >> - multiple buffers and windows >> - query replace >> - keyboard macros >> - online help (":!man vi" doesn't count) >> >> Larry Campbell The Boston Software Works, Inc. > >How about :g/old-string/s//new-string/gc for conditional replace. Or is >query replace something different. Not to mention the ":map" and ":map!" commands for keyboard macro's. (It seems to me you could mimic emacs fairly well by immediately going into insert mode, and using a good sprinkling of map! commands in your .exrc...) And one volley for the other side: I really like to be able to say "15j" to go down 15 lines, and "40a -" to be able to make an 80 column dashed line. Does Emacs, (or any other editor, for that matter) provide this repeat n times facility? (this is not a rhetorical question, I don't know...) P.S. A Challenge to those Other Editor users, I can write a vi macro to reverse the words on a line... can you? -- Marc Mengel ...!ihnp4!cuuxb!mwm