Change the default text editor in Terminal
Simply set the EDITOR variable to vim in your bash startup file.

EDITOR=vim


From the bash manual

   edit-and-execute-command (C-xC-e)
      Invoke an editor on the current command line, and execute the result as shell commands.  Bash
      attempts to invoke $FCEDIT, $EDITOR, and emacs as the editor, in that order.