Globally replace Vi with Vim on Fedora
Your vi
is Vim, but invoked as vi
, so it enters historical compatibility mode. The recommended action is that if you want to run Vim and not vi, run vim
and not vi
. However, if you want vi
to always run Vim on every account on the system, override it in /usr/local/bin
:
cat >/usr/local/bin/vi <<\EOF
#!/bin/sh
exec /usr/bin/vim "$@"
EOF
chmod 755 /usr/local/bin/vi
# echo 'alias vi="vim"' >> /etc/bashrc'
or # alternatives --install /usr/bin/vi vi /usr/bin/vim 900