default editor snippets

How to change the default editor in Debian

Tagged default editor, debian, ubuntu, standard editor, oletuseditori  Languages bash

This command changes the default editor system wide. It should work in all Debian derivatives.

sudo update-alternatives --config editor