#!/bin/sh

if [ -x /usr/bin/vi ]; then
    exec /usr/bin/vi ${1+"$@"}
else
    if [ ${DISPLAY}MT = MT ]; then
	ae -f /etc/ae/ae2vi.rc ${1+"$@"}
    else
        ae -f /etc/ae/ae2vix.rc ${1+"$@"}
    fi
fi
