CodeMirror's vim support is fairly limited though. Here's the list, in comments at the top of the code here: http://codemirror.net/keymap/vim.js
Also, "Because CodeMirror's internal API is quite different from Vim, they are only a loose approximation of actual vim bindings"
http://codemirror.net/demo/vim.html