update-alternatives --config editor
Choose the editor from the displayed menu.
update-alternatives --config editor
Choose the editor from the displayed menu.
To change the keyboard layout on Debian or ubuntu issue the following command:
dpkg-reconfigure console-data
and then follow the online prompts.