Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!bbs!ddsw1!dattier From: dattier@ddsw1.MCS.COM (David W. Tamkin) Newsgroups: comp.editors Subject: Re: Re: vi for power users Summary: Why the long way? Message-ID: <1990Dec14.174605.19649@ddsw1.MCS.COM> Date: 14 Dec 90 17:46:05 GMT References: <109909@convex.convex.com> <1371:Dec1108:11:4090@kramden.acf.nyu.edu> <4672@umbc3.UMBC.EDU> <7150:Dec1309:42:4690@kramden.acf.nyu.edu> Reply-To: dattier@ddsw1.MCS.COM (David W. Tamkin) Organization: Contributor Account at ddsw1, Wheeling, Illinois Lines: 23 brnstnd@kramden.acf.nyu.edu (Dan Bernstein) wrote in <7150:Dec1309:42:4690@kramden.acf.nyu.edu>: | In article <4672@umbc3.UMBC.EDU> rouben@math15.math.umbc.edu.UUCP (Rouben | Rostamian) writes: | > Here is the "no bounce" version of the same macro: | > map ^A :s/$/ /^M74^V|? ^Ms^M^[$xx0 | | Good idea. This is as reliable as the original: | | map ^A :s/$/ $/^M$r 74^V|? ^Ms^M^[$xx0 For both forms, why are things done the long way? Why ":s/$/ /^M" instead of "A ^["? Why "? ^M" instead of "F ", as long as that the space will be on that line? Why "s^M^[" instead of "r^M"? "r^M" works fine in my own reformatting macro. (I won't post it because it has other bugs.) Why "xx" instead of "2x"? This is a macro in one's .exrc, so saying that "`xx' is easier to type every time you use it than `2x'" doesn't count. David Tamkin Box 7002 Des Plaines IL 60018-7002 708 518 6769 312 693 0591 MCI Mail: 426-1818 GEnie: D.W.TAMKIN CIS: 73720,1570 dattier@ddsw1.mcs.com