Skip to content
Snippets Groups Projects
Commit 01e7ab9c authored by Yunchi Luo's avatar Yunchi Luo
Browse files

[vim] Update documentation to set vimMode instead of keyMap

parent 7c134914
No related branches found
No related tags found
No related merge requests found
......@@ -51,9 +51,10 @@ int getchar(void)
<p>The vim keybindings are enabled by
including <a href="../keymap/vim.js">keymap/vim.js</a> and setting
the <code>keyMap</code> option to <code>"vim"</code>. Because
CodeMirror's internal API is quite different from Vim, they are only
a loose approximation of actual vim bindings, though.</p>
the <code>vimMode</code> option to <code>true</code>. This will also
automatically change the <code>keyMap</code> option to <code>"vim"</code>.
Because CodeMirror's internal API is quite different from Vim, they are only a
loose approximation of actual vim bindings, though.</p>
<script>
CodeMirror.commands.save = function(){ alert("Saving"); };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment