You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scala REPL doesn't respect ~/.inputrc options, in particular vi editing mode.
Other interpreters, such as mysql, python, and irb all work correctly with this. This makes it inconvenient for vim users to use the interpreter, as it's slow to use the arrow keys and the delete keys to move around and make changes in a character-by-character basis (e.g. can't cw to change word).
Here is an example of inputrc settings that should be respected:
set editing-mode vi
set keymap vi
The text was updated successfully, but these errors were encountered:
@som-snytt said:
Actually, they upgraded jline in 2.11 and it works viishly. I have a little shrine to Adriaan in the corner here and I light a candle every time I use the REPL. It's like being transported from the Dark Ages to sometime in 1977. But some commands balk.
@retronym said:
As noted above, this is something that can be configured now that we are tracking the standard JLine releases.
Caveat: We're about to upgrade to JLine 2.14.1 which changes the meaning of set keymap = vi to start the shell in edit mode. Discussion: scala/scala#5129 (comment)
We're now suggesting that issues around JLine itself should be raised in its issue tracker: https://github.com/jline/jline2.
If the issue is with our usage of JLine (or maybe, the fact we aren't on the latest version with a bug fix or feature you need), feel free to raise issues here. If you're not sure, ask us over on https://gitter.im/scala/contributors
The
scala
REPL doesn't respect ~/.inputrc options, in particular vi editing mode.Other interpreters, such as
mysql
,python
, andirb
all work correctly with this. This makes it inconvenient for vim users to use the interpreter, as it's slow to use the arrow keys and the delete keys to move around and make changes in a character-by-character basis (e.g. can'tcw
to change word).Here is an example of inputrc settings that should be respected:
set editing-mode vi set keymap vi
The text was updated successfully, but these errors were encountered: