I use neovim. I changed my .zshrc to open nvim when I type vim
in the terminal.
My configuration is from my Mac where I didn't use Sudo much (now I use Ubuntu, I use sudo all the time).
When I do sudo vim {anything}
, Vi opens or it might be Vim but its not neovim.
In my zshrc I have:
alias vim="nvim"
EXPORT EDITOR="nvim"
How do I activate nvim to open files when I use sudo
?