Add to your ~/.bashrc:

export EDITOR=vim