The vim keybindings are enabled by including keymap/vim.js and setting the keyMap option to "vim". Because CodeMirror's internal API is quite different from Vim, they are only a loose approximation of actual vim bindings, though.
keyMap
"vim"