marijnh/CodeMirror — pull request #1312 by dextius (2013-03-04 05:30:50+00:00)
Title: Hi, I'm new.

So, I'm not really a javascript programmer. I downloaded light table, and saw they had vim bindings. I've been using vim/screen for like 15 years and thought it'd be nice to try something new. First thing I did was open a file and hit ctrl-d to skip through it. Nothing. I monkeypatched the code locally so I could test out functionality. I let Chris Granger know and he advised me to clone Codemirror and apply my patch.

He is using a slightly older version, so I had to patch my code slightly to make it work with your latest. Thanks for implementing ".". That was driving me nuts too, and I was going to fix that next.

Anyway, ctrl-u/d are both custom commands, you should be able to specify the number of lines you want to scroll, but if it's not set it defaults to a half page. I set it up that way, storing the custom value in the global configuration. I did overload your concept of "unit" which you may not like for findPosV.

So, first use of github, first clone, first checkin and first pull request, let me know if it looks ok. Oh and all the existing tests passed, if you want me to write a test, I will.