The BASH shell provides you with built-in command line editing that is identical to the EMACS editor.
You can also switch to using a vi editing mode by entering the command:
M-^m
To switch from vi mode to EMACS mode use the command:
M-^e