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's probably because sudo doesn't start a shell or profile files are only executed in interactive shell sessions.
What I'm looking for now is a way to uninstall classic vi completely to make a symlink that even survives system updates. How can I remove classic vi but not vim on Fedora 17? Or is there even a better way?
Update: With yum provides vi I found out that vi is provided by the package vim-minimal. But I can't simply remove it because it automatically removes the package sudo with it. Even if I do remove it, and try to install sudo again afterwards, vim-minimal is then again installed as dependency.
Update: As requested, output of rpm -qf /usr/bin/vi:
vim-minimal-7.3.444-1.fc17.x86_64 And ls -l /usr/bin/vi:
-rwxr-xr-x. 1 root root 782248 13. Feb 2012 /usr/bin/vi
rm /usr/bin/vi; ln -s /usr/bin/vim /usr/bin/vi. Not an answer because I would personally find a better way (or type vim if I wanted vim).vim-minimalpackage is updated?/usr/bin/via symlink (to what) or a regular file on Fedora? If a regular file, from what package?ls -l /usr/bin/viandrpm -qf /usr/bin/vi.