This command will allow you to change the default editor in your Debian/Ubuntu machine
update-alternatives --config editor
This command will allow you to change the default editor in your Debian/Ubuntu machine
update-alternatives --config editor