In Visual Studio Code, how to toggle between vim-emulation and no-vim-emulation when the vscodevim extension is installed?

人走茶凉 提交于 2020-01-02 02:46:08

问题


I haven't found a way to quickly do this without having to entirely disable the extension in the "Extensions" panel. In IntelliJ IDEA, one can easily toggle on/off the emulation with a configurable keyboard shortcut. I guess it should also be possible in VSCode.


回答1:


VSCode has the same command system as atom. These commands can be started through the "command palette" and also bound to a key-combo.

The corresponding command is toggleVim. You can bind this command to a key using the gear-icon > keyboard combos (sry, i don't know how to switch the language for an exact description :) ) > enter "toggleVim" to the searchbar. Then you can assign a combo to it.

Effectively the extension will be disabled or enabled quickly.



来源:https://stackoverflow.com/questions/47502318/in-visual-studio-code-how-to-toggle-between-vim-emulation-and-no-vim-emulation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!