VSCodeVim/Vim

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

Open

#1.543 geöffnet am 20. Apr. 2017

Auf GitHub ansehen
 (7 Kommentare) (10 Reaktionen) (1 zugewiesene Person)TypeScript (1.271 Forks)batch import
area/remaphelp wantedkind/feature

Repository-Metriken

Stars
 (12.664 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 13h) (7 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide