2014年11月9日 星期日

scala shell(console) with vim key bind.



If you want to use scala shell with vim key bind,

you can press `esc + enter`.

Now you enter to vim mode.




When you enter vim mode, you will in Insert mode.

In Insert mode, it will display anything you type.




If you want to switch to Normal mode, just type `esc` or `ctrl + [`.

It's similar as vim.

Now you can move your cursor using `h`,`l`.

Or you can delete line using `dd`, etc.


Enjoy it.


How does it work?
https://github.com/jline/jline2/wiki/JLine-2.x-Wiki

沒有留言:

張貼留言