Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!hpl-opus!steinbac From: steinbac@hpl-opus.hpl.hp.com (Guenter Steinbach) Newsgroups: comp.editors Subject: Re: Does vi have a conditional (if) command? Message-ID: <62420027@hpl-opus.hpl.hp.com> Date: 1 May 91 04:16:18 GMT References: <1370010@vantage.UUCP> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 15 In comp.editors, ray@vantage.UUCP (Ray Liere) writes: > Is there an "if" statement in vi? I believe not, unfortunately. The only semblance of a conditional action is the fact that a mapped command that consists of several subcommands stops working altogether on the first failed subcommand. And that mapped command could itself map other commands if successful. This can come in handy but I doubt that it is powerful enough for your purposes. Guenter Steinbach gunter_steinbach@hplabs.hp.com