marijnh/CodeMirror — pull request #1070 by mightyguava (2012-12-10 01:55:55+00:00)
Title: [vim keymap] Basic :map implementation

Depends on https://github.com/marijnh/CodeMirror/pull/1068

Adds user defined mappings via the `:map` command. Supports {command, key}, to {command, key} mappings. Has some basic support for Vim key notation, i.e. `` => `Ctrl-r`.

Adds a `CodeMirror.Vim.map` function that takes `from` and `to` arguments and does the same thing as `:map`.