geth does not use the Unix standard readline library. It implements some of the command line input within it's code base with the github.com/peterh/liner library for some of the other functionality.
Q: How to enable vi mode in geth console?
A: You cannot enable vi mode in the
Geth/v1.4.5-stable-a269a713/linux/go1.6.2 does not seem to honor the .inputrc setting. Missing feature (or bug)?
A: I would consider this a feature, as
geth has been built to run across the three operating systems Linux, OS X and Windows.
You will get the interactive console when you start
geth with the
attach command and these call
The calls to
repl.interactive() execute the function
interactive() in cmd/geth/js.go, lines 318-371.
interactive() uses the cmd/utils/input.go and github.com/peterh/liner library to deal with the command line editor.
You can see the keystroke handling in github.com/peterh/liner/input.go.