VSCodeVim/Vim

A separate command for remapping all kinds of key shortcuts Code supports

开放

#1,543 创建于 2017年4月20日

 (7 条评论) (10 个反应) (1 位负责人)TypeScript (1,271 个派生)batch import
area/remaphelp wantedkind/feature

仓库指标

星标
 (12,664 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Our current remappers can only map keystorkes we registered in package.json but we can't do this for all kinds of key shortcuts. However we can provide a command to allow users to do that, by leveraging arguments of keybindings. For example

    {
        "key": "F3",
        "command": "vim.remap",
        "when": "editorTextFocus",
        "args": {
            "value": ["a", "b", "c", "<Esc>"]
        }
    }

F3 can enter Insert Mode, insert bc and quit Insert Mode. And we don't need to make our package.json dirty.

贡献者指南