Re: vi defaults in 6.x

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 20.8.2012 19:16, Gordon Messmer wrote:
> On 08/20/2012 04:07 AM, Joerg Schilling wrote:
>> Gordon Messmer<yinyang@xxxxxxxxx>  wrote:
>>
>>>> Actually, it's a shell alias.  And then, only if "vim" is installed,
>>>> which it isn't in some configurations.  IIRC, desktop systems have him
>>>> by default, but server installations do not.
>> It is neither a symlink nor a shell alias - execpt maybe for platforms that
>> for some reason don't include vi.
> 
> On a CentOS system, "vi" will be a shell alias when the "vim" package is 
> installed.  Otherwise it will be a variant of "vim" which is more 
> compatible with the POSIX description of "vi" (though not 100%).  As we 
> are discussing CentOS, I believe my statements did not require 
> correction.  Thanks.

I got curious ;-)

vim-minimal installs /bin/vi
vim-enhanced installs /usr/bin/vim and sets the alias (the "vim" package)

[falb@xxx ~]$ which vi
alias vi='vim'
	/usr/bin/vim
[falb@xxx ~]$ which vim
/usr/bin/vim
[falb@xxx ~]$ whereis vi
vi: /bin/vi /usr/share/man/man1/vi.1.gz /usr/share/man/man1p/vi.1p.gz

But the alias is not set for root!

[root@xxx ~]# which vi
/bin/vi
[root@xxx ~]# which vim
/usr/bin/vim
-- 
Kind Regards, Markus Falb

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux