#! /bin/sh
EXINIT0="set  autodetect=cn fileencoding=big5 displayencoding=big5 inputencoding=big5 noskipdisplay"
if [ -f ~/.exrc ]; then
	EXINIT="$EXINIT0 `sed -e '/^set /!d' -e 's/^set //' < ~/.exrc | tr '\012' ' '`"
else
	EXINIT=$EXINIT0
fi
export EXINIT
exec /usr/local/bin/nvi "$@"
