marijnh/CodeMirror2 — pull request #279 by misfo (2011-12-06 01:19:07+00:00)
Title: Vim word motions: B, b, E, e, W, and w

Since these are the most commonly used horizontal motions in Vim (for me anyways), it's pretty important that they work exactly the same as they do in Vim (which turned out to be a pain in the ass). This implementation, as far as I can tell, gets it right. If you open the same text in Vim and CodeMirror and type `42w`, for instance, it will land on the exact same character. At least in all my tests :)

Keybindings including the shift key select the text that they move over, however. Any ideas on that one? Should I open an issue?