Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
REPL command mode #9249
As reported at https://github.com/scala/scala/issues/4392, 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.
Imported From: https://issues.scala-lang.org/browse/SI-9249?orig=1
Li Haoyi (lihaoyi) said:
@ 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