Path: utzoo!attcan!uunet!mcsun!hp4nl!mhres!jv From: jv@mh.nl (Johan Vromans) Newsgroups: comp.unix.wizards Subject: Vi macro's (was: Re: HELP converting filenames!) Message-ID: Date: 8 Oct 89 19:00:30 GMT References: <9234@pyr.gatech.EDU> <5003@omepd.UUCP> <9754@cadnetix.COM> <1983@convex.UUCP> Sender: jv@mhres.mh.nl Organization: Multihouse Gouda, the Netherlands Lines: 21 In-reply-to: tchrist@convex.COM's message of 7 Oct 89 14:27:24 GMT In article <1983@convex.UUCP> tchrist@convex.COM (Tom Christiansen) writes: | map v $ma81a ^V^[81^V|D`ald0:s/ / /g^V^M$p | | which is a better way to do the more convoluted: | | map v :co.^V^Mk:s/./ /g^V^Mo^V^[80a ^V^[:-1s;.*;:s/&//;^V^M"mdd@m:s/../ /g^V^MJ | | which is a better way to do the still more convoluted: | | map v o^V^[k:co.^V^M:s/./ /g^V^Mo^V^[80a ^V^[:-1s;^;:s/;^V^M:s;$;//;^V^M"mdd@m:s/\(.\)./\1/g^V^M:s;^;:-1s/^/;^V^M"mdd@mjdd You'll probably need an Analysts Workbench, a 400-page Software Specification and a 800-page User Guide to write and use a one-liner like these.... :-) (Although I'm partly serious. Complex systems should be treated as such, even if they end op with a one-line program.) -- Johan Vromans jv@mh.nl via internet backbones Multihouse Automatisering bv uucp: ..!{uunet,hp4nl}!mh.nl!jv Doesburgweg 7, 2803 PL Gouda, The Netherlands phone/fax: +31 1820 62944/62500 ------------------------ "Arms are made for hugging" -------------------------