[Other tools] Please make vimdot to work with VI
Ported Issue from Mantis Original ID: 2507 Reported By: Jaroslav Skarvada
SEVERITY: MINOR Submitted: 2015-01-16 10:17:22
There is hardcoded path /usr/bin/vim in vimdot script. I think it should also work with /usr/bin/vi, which is available on most systems. Patch is attached.
Original Fedora bugreport: https://bugzilla.redhat.com/show_bug.cgi?id=1182764
Maybe better solution is to follow the environment variable EDITOR, e.g.:
editor="$EDITOR" if [ ! -x "$editor" ]; then editor="/usr/bin/vim" [ -x "$editor" ] || editor="/usr/bin/vi" fi
But in this case the vimdot name may be a bit confusing.