Add to /etc/environment
FILE (for root)
or/and FOR USER to ~/.bash_profile
export EDITOR="/usr/bin/nano"
export VISUAL=$EDITOR
For edit /etc/sudoers
with nano you need once edit sudoers config:
sudo -i
export EDITOR=nano
visudo
add at end of file:
## Set nano as default editor
Defaults env_reset
Defaults editor=/usr/bin/nano, !env_editor
Save changes in files.