5

Globally replace Vi with Vim on Fedora

view full story
linux-howto

http://unix.stackexchange.com – On Debian-based systems the alternatives system handles both the vi and vim executable. So if vim is installed and you execute vi, you also get vim, which I find very nice, because I absolutely hate classic vi. On Fedora 17 "Beefy Miracle", the alternatives system obviously doesn't handle none of the two. But there is a profile file in /etc/profile.d/vim.sh which adds a shell alias to make vi execute vim. For some reason it does not do that for system users, including root. But even if I set up an alias for all users manually, when I call sudo vi I'm starting classic vi instead of vim. That' (HowTos)