jline/jline2 — pull request #27 by scgray (2012-03-14 22:27:53+00:00)
Title: Improved support for 'vi'

I'm currently working on making 'vi' work. Currently I have the following:

* Unit tests now all pass. For keymap tests, I force "emacs" mode to be on by default, regardless of if a .inputrc exists. For ConsoleReaderTest I had to do a horrible kludge to keep .inputrc from being read, as it appears its mere presence breaks the test. Please look at what I did. I don't like it, but it works.
* I added the start of a new test suite for vi "move" mode.
* I have started going key-by-key through the vi movement commands, testing and fixing them. Of note, you can now properly transition between move and insert modes and hitting enter will now re-enter insert mode. I haven't gotten too far...I'm still on the CTRL-? keys in move mode.
* The Configuration class looks like it was supposed to be a singleton but wasn't. If you pass null into getConfig() now, you get the most recently created configuration.
* All KeyMaps have the arrow keys bound now, not just emacs.