marijnh/CodeMirror — pull request #1068 by mightyguava (2012-12-08 23:22:17+00:00)
Title: [vim keymap] Rudimentary Ex command implementation

So I changed my mind and decided to start Ex commands before finagling with text objects.

This implementation supports:
- `:w[rite]`: Calls `CodeMirror.commands.save` if it exists, or `cm.save()` if not.
- `:{num}`: go to line
- `:red[o]`
- `:u[ndo]`

The main feature of this implementation is actually that it supports partial matching of commands. It will match write for `:w`, `:wr`, `:wri`, etc. It also supports prefixing the command with `:` and {num}. While there are no commands that can be prefixed yet, the command parsing system should make it easier to extend functionality as more commands are added.