How to replace vim with neovim in Fedora 41
The right way.
You don't need to have vim installed. Actually, remove it.
Muscle memory is hard to manage. I keep writing vim everywhere, but I want neovim to open instead. A simple alias won't do the trick (running with sudo, for example, is an issue).
To make this work just run the following:
sudo update-alternatives --install /usr/bin/vim vim $(which nvim) 10
sudo update-alternatives --config vimAnd it should be done. nvim will open, well, neovim, and so will vim, with or without sudo, and on any account including root.