20b5ab
#!/usr/bin/sh
20b5ab
20b5ab
# run vim -R if available
20b5ab
if test -f /usr/bin/vim
20b5ab
then
20b5ab
  exec /usr/bin/vim -R "$@"
20b5ab
fi
20b5ab
20b5ab
# run vi otherwise
20b5ab
exec /usr/libexec/vi -R "$@"