I executed these two commands:
export VISUAL=/usr/bin/vim
export EDITOR=/usr/bin/vim
And I checked if they were correctly updated by env
. But I get a strange editor when I run sudo visudo
.
Though I do not know the editor, at the bottom of the console it says this:
-----Mg: sudoers.tmp (fundamental)----Top------------------
(Read 29 lines)
This editor is useless because I cannot move the cursor. What I can do is to close the console.
What makes this weird editor run? What command should I execute to change editors?