VSpaceCode / VSpaceCode

Spacemacs like keybindings for Visual Studio Code

Home Page:https://vspacecode.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to define key sequence with the effect of `evil-escape-key-sequence`?

concretevitamin opened this issue · comments

Hello,

This is a great extension, thanks for making it.

A quick question as I adjust to it. In my .spacemacs I have

  (setq-default evil-escape-key-sequence (kbd "jj"))

Namely typing jj while editing something would escape me back to normal mode. Is there a simple way to define this in VSpaceCode? Searching "escape" in settings.json and in docs returns no results.

Hey 👋

From https://github.com/VSCodeVim/Vim readme:

"vim.insertModeKeyBindings": [
    {
      "before": ["j", "j"],
      "after": ["<Esc>"]
    }
  ],

Thanks! Works for me!

This might be considered as default behavior and binding.