I’ve set neovim as sudoedit with:
export EDITOR="nvim"
export SUDO_EDITOR=/usr/bin/nvim
But after restarting it reverts back to nano as sudoedit.
I’ve set neovim as sudoedit with:
export EDITOR="nvim"
export SUDO_EDITOR=/usr/bin/nvim
But after restarting it reverts back to nano as sudoedit.
All those commands do is export it for the current session.
If you want those to run for every session your user starts you can put them in ~/.bashrc
Or if you want them applied system-wide you can put them in /etc/environment
without the export
. ex:
EDITOR=/usr/bin/nvim
SUDO_EDITOR=/usr/bin/nvim
Don’t forget to log out and back in if you put it there.
And if you put them there, then you may want to reboot for the changes to take effect.
That did the trick. Thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.