Come fare in modo che vi corrisponda a vim
Iniziamo:
yum -y update
VI=VIM
vi /etc/profile.d/vim.sh
It should look like this:
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
Add a # sign in front of lines 2 and 3, so that it looks like this:
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