Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
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.
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