Vim bindings demoVim绑定演示文档
Note:注意: The CodeMirror vim bindings do not have an active maintainer. CodeMirror vim绑定并不具有一个活动的维护者。
That means that if you report bugs in it, they are likely to go unanswered. 这意味着如果你报告了bug,很有可能得不到回应。
It also means that if you want to help, you are very welcome to look at the
open issues and see which ones you can solve.这也意味着如果你想要帮助,建议你看看the open issues并看看哪个能够帮助你。
The vim keybindings are enabled by including 通过包含keymap/vim.js
and setting the keyMap
option to vim
.keymap/vim.js
并把keyMap
配置项设置为vim
来启用vim键绑定。
Features功能
- All common motions and operators, including text objects
- Operator motion orthogonality
- Visual mode - characterwise, linewise, blockwise
- Full macro support (q, @)
- Incremental highlighted search (/, ?, #, *, g#, g*)
- Search/replace with confirm (:substitute, :%s)
- Search history
- Jump lists (Ctrl-o, Ctrl-i)
- Key/command mapping with API (:map, :nmap, :vmap)
- Sort (:sort)
- Marks (`, ')
- :global
- Insert mode behaves identical to base CodeMirror
- Cross-buffer yank/paste
For the full list of key mappings and Ex commands, refer to the 欲得完整的键映射和Ex命令列表,请参考defaultKeymap
and defaultExCommandMap
at the top of keymap/vim.js
.keymap/vim.js
顶部的defaultKeymap
和defaultExCommandMap
。
Note that while the vim mode tries to emulate the most useful features of vim as faithfully as possible, it does not strive to become a complete vim implementation请注意,尽管VIM模式试图尽可能忠实地模拟VIM最有用的特性,但它并不努力成为完整的VIM实现。