#! /bin/sh
EXINIT0="set  autodetect=cn fileencoding=hz displayencoding=hz inputencoding=hz 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 "$@"
