I’d love to see iex command line supporting vi command line editing. It’s painful using iex and having to move the cursor slowly back and forth with the arrow keys. Would be a nice optional feature to add in the future!
FWIW, the basic Emacs movement keys work. Not really what you wanted to hear.
If you use rlwrap you can switch to vi command bindings, but I wouldn’t hold my breath for native support in iex for vi keybindings.
Thanks – I’m going to hold my breath
This is the top result from google iex vim
, so I’m going to append my desire for iex to use an inputrc compatible line editing interface. Coming from ruby a decade ago when there were problems with getting readline available using RVM or rbenv, linedit at least would use setting from .inputrc. I’m unsure if linenoise (from redis created for redis) honors inputrc (vim bindings work in the redis-cli), but it might be worth a look if licenses are still an issue.
It is not a licensing issue, but buried very deep in the Erlang shell code. It order for the erlang shell to use readline, you’d have to largely rewrite it from scratch. Or at least that has been the conclusion of everyone that has taken a serious look at what is required.
Just came here to register my wish of an iex vim mode too
Also, in the meantime, what’s the correct way to wrap iex
with rlwrap ?
rlwrap iex
just does not seem to be workinffg