vim/view_wrapper
Zdenek Dohnal 6b04c32679 remove vim-wrappers, vim is a binary again, vi and view stay as wrappers
removed vim -> vi functionality, because it cannot be optional and work
  for all cases at the same time
2021-02-09 10:39:28 +01: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 "$@"