If you add this to your bashrc you can use vim key bindings to edit your commands.
set -o vi
Then if you write a command out and then press escape, you can use vim motions to move around and edit your command. Its mentioned in the post but not explained.
set -o vi