How to change the default editor in Debian
This command changes the default editor system wide. It should work in all Debian derivatives.
sudo update-alternatives --config editor
This command changes the default editor system wide. It should work in all Debian derivatives.
sudo update-alternatives --config editor