【问题标题】:Visual Studio Code Vim: How do I bind shift-spaceVisual Studio Code Vim:如何绑定 shift-space
【发布时间】:2018-07-14 04:18:30
【问题描述】:

我正在尝试在 Visual Studio Code 中使用 Vim 模式,使用他们的 VSCodeVim 扩展

在我的旧 vimrc 中,它看起来像:

map <S-space> <Esc>

在代码的settings.json 我试过了:

"vim.insertModeKeyBindingsNonRecursive": [
    {
        "before": ["<S-Space>"],
        "after": ["<Esc>"]
    }
],

没有用:(

【问题讨论】:

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


    【解决方案1】:

    看起来像是他们插件中的错误,而不是我做错了什么。

    Here's a workaround

    里面只是普通的keybindings.json

    {
        "key": "shift+space",
        "command": "extension.vim_escape",
        "when": "editorTextFocus"
     },
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-03-18
      • 1970-01-01
      • 1970-01-01
      • 2013-05-02
      • 2016-02-20
      • 2021-09-12
      • 2016-12-19
      相关资源
      最近更新 更多