如何像 vim 一样在 VSCode 中使用 / 命令进行搜索?我已经安装了 VIM 扩展和一堆可以模拟 vim 的扩展。但我只能做这些:
dd - delete line
gg - go to top of the file
G - go to the bottom
我不能这样做:
/ - search
: - do set or other commands like %s/../../g (no ":" mode at all)
. - repeat last action
0 - go to the beginning of the line
ZZ - save and exit
看起来 Vim 扩展并没有继承所有 vim 简洁的快捷方式。我需要在设置中添加什么?
我喜欢很多 vim 功能,如果可能的话,我希望它们都在 VSCode 中。任何帮助表示赞赏。
事实上,您提到的所有功能都得到了很好的实现。但是不同的扩展可能会导致冲突,尤其是当它们都倾向于更改快捷方式时,这可能会导致不可预知的行为。您最好尝试禁用所有其他模拟 vim 但由 vscodevim 提供的 Vim 的扩展。如果问题仍然存在,请重置 Vim 设置,或重新安装它。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句