dave--uk wrote:
In the end I found the problem - and this did help, but not as I expected.
It was actually in /etc/profile.d/vim.*. If the uid>100 vi is aliased
to vim (so I get all the nice features) otherwise it's not and I dont.
That's why I sometimes got the nice stuff and sometimes didn't. RH9
did a simple alias.
Now I know, I can just change it. But ... why only alias for uid>100?
Maybe they asumed that anyone using uid<0 knows what they are doing
(so types vim not vi) :)
Thanks all the same.
When booting in single-user mode (usually for system repairs or some
such), /usr (where the executable "vim" from the vim-enhanced rpm
resides) might not even be mounted. (Only / is guaranteed to be mounted,
and it is expected that /bin and /sbin [but not necessarily /usr/bin or
/usr/sbin, even less /usr/X11R6/bin which contains the "gvim" executable
from the vim-X11 rpm] will be on the same filesystem as / ). So root
must use (at least when booting in single-user mode) the "vi" executable
which is a bare-bones vim from the vim-minimal rpm. Other users may use
the "vim" (vim-enhanced) or "gvim" (vim-x11) binaries.
Best regards,
Tony.