Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Erlang interpreter: Vi mode

Tags:

erlang

I'm currently trying to get my hands dirty with Erlang. Also, in the (zsh) shell, I have got accustomed to using vi mode for line editing (set -o vi).

So: Is there a way to make the Erlang interpreter use more vi-like keybindings?

like image 686
Dave Vogt Avatar asked Aug 15 '12 20:08

Dave Vogt


2 Answers

Yes! Just call it as

rlwrap erl -oldshell

NOTE: you may need to install rlwrap (readline wrapper) and adjust your .inputrc (set editing-mode vi)

like image 74
alavrik Avatar answered Sep 19 '22 06:09

alavrik


No!

Well you could write your own line edit module and use that.

like image 20
rvirding Avatar answered Sep 23 '22 06:09

rvirding