Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpl-opus!steinbac From: steinbac@hpl-opus.HP.COM (Gunter Steinbach) Newsgroups: comp.editors Subject: Re: Loops in VI macros? Message-ID: <62420018@hpl-opus.HP.COM> Date: 8 Oct 90 16:28:47 GMT References: <5973@minyos.xx.rmit.oz> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 9 You can loop by using two macros that keep calling each other. The stop criterion can be an "error" such as trying to go left past the end of line, not finding another occurrance of a string (maybe with "nowrapscan" set), etc. I've used it, but very rarely because it's dangerous. If you come up with some useful stuff, please publish it here. Guenter Steinbach gunter_steinbach@hplabs.hp.com