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