marijnh/CodeMirror — pull request #1030 by siefkenj (2012-12-02 06:36:16+00:00)
Title: [vim] added Home, End, PageUp, PageDown, |

* moveByLines was changed to better keep track of the previous
action. For example, if moveToEol was the previous action,
moving up or down should stay at Eol regardless of line length.

Not sure how many other vim functions need to keep track of the char they were set on when moving up and down...Also, I handled the Eol case by setting lastHPos to Infinity. This of course isn't a valid position which might need to be taken into account if anyone wants to do computation with lastHPos, but it worked very nicely with the current framework.

* Unit tests added.