vim/SOURCES/view_wrapper
2021-12-09 15:43:09 +00:00

11 lines
150 B
Bash

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