Skip to content

`jj` or `jk` to normal mode

losnappas edited this page Sep 22, 2021 · 1 revision

In keybindings.json:

{
  "key": "j",
  "command": "dance.openMenu",
  "args": {
    "menu": {
      "items": {
        "jk": {
          "text": "escape to normal",
          "command": "dance.modes.set.normal"
        }
      }
    },
    "prefix": "j"
  },
  "when": "editorTextFocus && dance.mode == 'insert'"
},

There is also another pretty good way: https://github.com/71/dance/issues/74#issuecomment-819127215 , esp. if using an older version of Dance.