Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!milton!sumax!nwnexus!vantage!ray From: ray@vantage.UUCP (Ray Liere) Newsgroups: comp.editors Subject: Does vi have a conditional (if) command? Message-ID: <1370010@vantage.UUCP> Date: 26 Apr 91 17:13:50 GMT Organization: Vantage Consulting and Research Corporation Lines: 23 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). For example (pseudocode), if $TERM is vt102 then map .. set .. other .exrc-like things ... fi Thanks! Ray Liere Vantage Consulting and Research Corporation voice: +1 503 657 7294 uucp: uunet!nwnexus.WA.COM!vantage!ray -or- hplabs!hpubvwa!hpupora!vantage!ray Internet: ray%vantage@nwnexus.WA.COM