To switch / define your default editor type:
~# update-alternatives –config editor
There are 3 alternatives which provide `editor’.
Selection Alternative
———————————————–
1 /bin/ed
*+ 2 /bin/nano
3 /usr/bin/vim.tiny
Press enter to keep the default[*], or type selection number: