Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL command mode #9249

scabug opened this issue Mar 25, 2015 · 2 comments


Copy link

commented Mar 25, 2015

As reported at, not everyone appreciates REPL's colon-command syntax. Since JLine already supports vi mode line edits, one accommodation would be to recognize a colon while in escaped edit mode, erase the line, draw a colon and accept command text.

This improvement would delight that fraction of users who <3 vi and also use a lot of ::. Probably under a flag.

This would make even more sense with line healing enabled.

scala> 42
res0: Int = 42

scala> :: Nil
res1: List[Int] = List(42)

This comment has been minimized.

Copy link

commented Mar 25, 2015

Imported From:
Reporter: @som-snytt
Affected Versions: 2.11.6


This comment has been minimized.

Copy link

commented Apr 19, 2015

Li Haoyi (lihaoyi) said:
This is "fixed" in the Ammonite REPL, which doesn't use special colon-commands at all

@ 42
res4: Int = 42
@ ::
res5: scala.collection.immutable.::.type = ::

I have never used vim mode, but since we're not hogging syntax you could give it a shot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.