elm-lang / elm-repl

A REPL for Elm
BSD 3-Clause "New" or "Revised" License
170 stars 34 forks source link

Doesn't respect Vim mode #155

Open AndrewRayCode opened 7 years ago

AndrewRayCode commented 7 years ago

I have this in my ~/.inputrc:

set editing-mode vi

This gives me Vim mode in bash, MySQL, IRB, and most command line utilities. However it does not seem to have any effect on elm-repl. Would this be easy to implement? It seems like it's provided by the GNU Readline Library

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

ehamberg commented 7 years ago

@AndrewRayCode I believe elm-repl is using haskeline instead of readline and that the following should work:

$ echo "editMode: Vi" > ~/.haskeline