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
if you want vi to be your default history editor (which is why I'm here)
edit ~/.bashrc and add
set -o vi
anywhere in the file. Then all the lovely vi command history is available (esc k etc).
Sorry if this is slightly off topic, but my search landed me here....