Change visudo editor from nano to vim

linux ubuntu

sudo update-alternatives --config editor