[CentOS] Difference between vi an vim on Centos5?

Sun Apr 15 11:00:45 UTC 2007
Sebastian Marten <sebi4711 at gmail.com>


Johnny Hughes schrieb:
> On Sun, 2007-04-15 at 06:09 -0400, Michael Velez wrote:
>>  

>>> Hello,
>>> i have a little problem on OS5.
>>> On CentOS4 vi an vim are the same programs.
>>> On 5 vi have no syntax highlighting while vim have it.
>>>
>>> Whats wrong?
>>>
>>> Greetings,
>>> Sebastian
>> In CentOS 4, by default vi is aliased to vim.  The unaliased vi does not
>> have syntax highlighting.
>>
>> Could it be that vi is not aliased to vim by default in CentOS 5? Run the
>> 'alias' command to see a list of aliases.  If you want to alias vi to vim,
>> just run:
>> alias vi=vim
>>
>> Michael
> 
> I believe that root is the only user where this happens ...
> 

That is correct, with a non-root user it works.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 542 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20070415/b4c6a164/attachment-0005.sig>