Red Hat Bugzilla – Bug 168010
/etc/profile.d/vim.sh don't applies to root user
Last modified: 2007-11-30 17:11:13 EST
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2.Log in and type 'alias' Note that 'vi' is aliased to 'vim' correctly.
4.as root user edit some .spec file
Actual results: vi was not aliased to vim and text isn't color coded
Expected results: vi should be aliased to vim and text is color coded
Created attachment 118680 [details]
my propose patch
using /bin/vi for users with UID < 100 including UID 0 is intentional and was
made by the request of many users. /usr/bin/vim won't work for sysadmins on many
cases, p.e. if /usr isn't mounted or is mounted via NFS and the NFS server is down.
/bin/vi will still work in those cases.
Sorry can't agree it that, because those are 1% of cases and those users should
use /bin/vi like you write.
The others 99% are losing the benefits of vim.
Well, lets try another reasoning:
when root types 'vi', he will get a editor as it is defined in the POSIX standard.
'vim' on the other hand isn'T POSIX compatible.