marijnh/CodeMirror2 — pull request #493 by jankeromnes (2012-04-15 20:33:28+00:00)
Title: Changes in `keymap/vim.js`

Hi,

In 3 places in the code, one function was defined on all alphabetic key bindings. I replaced the redundant code with a simple `for` loop over the uppercase alphabet.

I also added basic support for `Shift-D` and `Shift-Y`. The behavior is deleting or yanking all lines in a selection. In the future, selecting text should place the editor in a new `vim-visual` mode, and my `Shift-D` and `Shift-Y` code should be moved into this new mode. Maybe I'll do this later.

Best,
Jan