config_query MAKE_SYMLINK "Would you like to have /usr/bin/vi as a symlink to /usr/bin/elvis?" n &&

if [ "${MAKE_SYMLINK}" == "y" ] ; then
    if [ -e /usr/bin/vi ] && `readlink -f "/usr/bin/vi" | grep -viq "elvis"`; then
        echo "VI is already provided by vim." &&
        echo "To have elvis as provider of vi, recast vim with the vi symlink option disabled, then recast elvis." &&
        MAKE_SYMLINK="n" 
    fi
fi
