How to change the default editor in Debian

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