VI SUDO

To change the visudo editor from nano to vi, run

sudo update-alternatives --config editor

Also,

export EDITOR="vi"