In the terminal, run
1export EDITOR=nano
to change the default editor to nano (or whatever) and then run
nano
1source ~/.bashrc
for the change to take effect