[kook@localhost ~]$ rpm -qa | grep vim vim-enhanced-7.0.109-3 vim-common-7.0.109-3 vim-minimal-7.0.109-3 [kook@localhost ~]$ rpm -qc vim-enhanced /etc/profile.d/vim.csh /etc/profile.d/vim.sh [kook@localhost ~]$ vi /etc/profile.d/vim.sh if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then [ -x /usr/bin/id ] || return [ `/usr/bin/id -u` -le 100 ] && return # for bash and zsh, only if no alias is already set alias vi >/dev/null 2>&1 || alias vi=vim fi