My default editor is pico at my server. I use Bash and Linux.
I tried to change Vim to be my default editor unsuccessfully by
echo vim > $EDITOR
vim=/usr/bin/vim #or wherever vim binary is export EDITOR=vim
should do the job