VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.52k stars 1.3k forks source link

mix and match commands with keystrokes, or some way to also change the mode for a custom keystroke. #9102

Open MiLandry opened 1 week ago

MiLandry commented 1 week ago
    {
      "before": [
        "<leader>",
        "l"
      ],
      "commands": [
        {
          "command": "editor.action.insertSnippet",
          "args": {
            "snippet": "fmt.Println(\"$1 =\", $1)"
          }
        },
        "vim.changeToInsertMode"
      ]
    },

Is there any way to make "vim.changeToInsertMode" possible?

HenryTSZ commented 1 week ago
    {
      "before": ["<leader>", "l"],
      "commands": [
        {
          "command": "editor.action.insertSnippet",
          "args": {
            "snippet": "fmt.Println(\"$1 =\", $1)"
          }
        },
        "extension.vim_insert"
      ]
    },

https://github.com/VSCodeVim/Vim/issues/9029#issuecomment-2130972680