Bug 168010

Summary: /etc/profile.d/vim.sh don't applies to root user
Product: [Fedora] Fedora Reporter: Sergio Basto <sergio>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-12 09:00:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
my propose patch none

Description Sergio Basto 2005-09-10 17:45:02 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Install vim-enhanced
2.Log in and type 'alias'  Note that 'vi' is aliased to 'vim' correctly.
3.su -
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


Additional info:

Comment 1 Sergio Basto 2005-09-10 17:45:02 UTC
Created attachment 118680 [details]
my propose patch

Comment 2 Karsten Hopp 2005-09-12 09:00:13 UTC
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.

Comment 3 Sergio Basto 2005-09-14 01:10:03 UTC
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.

Comment 4 Karsten Hopp 2005-09-14 08:54:26 UTC
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.