I have just finished installing Fedora 36 and was in the process of installing my usual software. I personally prefer nvim over vim, but I got used to typing vim; so, I just use an alias alias vim='nvim' in .bashrc.
Using vim directly uses nvim and uses the init.vim; however, using sudo vim doesn't seem to use any of the mappings I wrote. (I linked init.vim with .vimrc with ln -s .config/nvim/init.vim .vimrc). I read that sudo uses another file other than .bashrc, but I don't want to create aliases everywhere.
Found some answers recommending using sudo update-alternatives --config vim and choosing nvim from a "list", but I don't get any output when running the command. It just gives me a new terminal line. How do I make sudo update-alternatives --config vim return the "list"? Or is there a better way to do it other than update-alternatives?