set -o vi
Once, you have done that then its time to get more out of the vi mode. First, check some things and set some interesting stuff.
#Display all the bindings : bind -P #Copy the current bindings and use it in inputrc: bind -p |grep -v self-insert>~/.inputrc
In the inputrc, so generated, all the functions and macros not bound are commented with “#” and you can set them to your choice as in other examples.
And here is a link that can get you started.