Vi macro's (was: Re: HELP converting filenames!)

Johan Vromans jv at mh.nl
Mon Oct 9 05:00:30 AEST 1989


In article <1983 at convex.UUCP> tchrist at 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 at 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 at m:s/\(.\)./\1/g^V^M:s;^;:-1s/^/;^V^M"mdd at 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 at 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" -------------------------



More information about the Comp.unix.wizards mailing list