Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!njin!njitgw.njit.edu!hertz.njit.edu!ken From: ken@hertz.njit.edu (ken ng cccc) Newsgroups: comp.editors Subject: Re: Does vi have a conditional (if) command? Message-ID: <1991May2.124706.21163@njitgw.njit.edu> Date: 2 May 91 12:47:06 GMT References: <1370010@vantage.UUCP> Sender: news@njit.edu Organization: New Jersey Institute of Technology, Newark, N.J. Lines: 15 Nntp-Posting-Host: hertz.njit.edu In article ed@lvw6.lvw.loral.com (Ed Allen) writes: :In article <1370010@vantage.UUCP> ray@vantage.UUCP (Ray Liere) writes: : Is there an "if" statement in vi? : I would like to put statements into my .exrc that are conditional : (based on $TERM) and would like to do this directly in .exrc (versus : having the .profile set up EXINIT for me based on $TERM). :so $TERM While that would solve the individual problem, I'd really love to have a REAL if statement in vi. There have been many times I've wanted to write a vi function like one can with REXX/XEDIT, to draw on the capabilities of vi, but it just isn't there the best I can tell. Kenneth Ng "No problem, this is how you make it" -- R. Barclay, ST: TNG