ubuntu set sudoers to use vim

Shell
sudo update-alternatives --config editor
Source

Also in Shell: