【问题标题】:Why is vscode vim.otherModesKeyBindingNonRecursive an unknown configuration?为什么 vscode vim.otherModesKeyBindingNonRecursive 是未知配置?
【发布时间】:2018-06-29 04:22:39
【问题描述】:

我使用此设置已有几个星期了,但它今天停止工作。这是 vscode vim easymotion 的设置。我不知道发生了什么。我没有改变任何东西。有谁知道为什么?

OS macOS 高 Sierra。
Vscode 版本 1.24.1 (1.24.1)。
Vscodevim v0.14.0 。

 "vim.otherModesKeyBindingsNonRecursive": [
        {
            "before": [
                "s"
            ],
            "after": [
                "leader",
                "leader",
                "s"
            ]
        }
    ],

【问题讨论】:

    标签: visual-studio-code vscode-settings vscodevim


    【解决方案1】:

    看起来otherModesKeyBindingsNonRecursive 已被替换。 See pull request 2726 on the VSCodeVim project。而是在项目的 README 中查看当前的Key Remapping section

    自定义重新映射是在每个模式的基础上定义的。

    "vim.insertModeKeyBindings"/"vim.normalModeKeyBindings"/"vim.visualModeKeyBindings"

    他们的示例用法:

    • 绑定:显示命令面板:
    "vim.normalModeKeyBindingsNonRecursive": [
        {
            "before": [":"],
            "commands": [
                {
                    "command": "workbench.action.showCommands",
                }
            ]
        }
    ]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-06-18
      • 2020-12-06
      • 1970-01-01
      • 2011-06-11
      • 2012-06-23
      • 2011-01-07
      • 2019-01-26
      相关资源
      最近更新 更多