Once upon a time, Jonathan Wakely <jwak...@fedoraproject.org> said:
> Could vim-minimal and vim-enhanced both install the same
> /etc/profile.d/vim.sh file that did something like this?
> 
> if [ -n "${BASH_VERSION-}" -o -n "${KSH_VERSION-}" -o -n "${ZSH_VERSION-}" ]; 
> then
>   [ "`/usr/bin/id -u 2>/dev/null || echo 0`" -le 200 ] && return

Why this?  Why not alias vi=vim for root?  We don't block root from
running vim (so it doesn't appear to be for security - vim already
ignores some things when running as root).

Rather than script hackery, why not just make vim-minimal and
vim-enhanced use the alternatives system?  They are alternates for
providing a "vi like" editor.

-- 
Chris Adams <li...@cmadams.net>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org

Reply via email to