PDA

View Full Version : sudo change default editor



james226
May 31st, 2016, 11:42 AM
ok i set the EDITOR variable to vi when i use the command "visudo" as a root user im in vi mode like expected
but when i use the command "sudo visudo" even with the root user i got back to nano editor why?
i set the EDITOR variable in the "regular" user as well.
p.s
im using lubuntu 16.04

CantankRus
May 31st, 2016, 12:57 PM
Have a look at

man visudo

What does alternatives tell you...

sudo update-alternatives --config editor