Skip to content
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

Allow jj for Esc #42

Closed
mloskot opened this issue Jul 4, 2016 · 7 comments
Closed

Allow jj for Esc #42

mloskot opened this issue Jul 4, 2016 · 7 comments

Comments

@mloskot
Copy link

mloskot commented Jul 4, 2016

This question is related to support for motion with jkl;,

I'd like to map jj (double j) for Esc and I'm trying this keybindings.json setting, but without any success:

{
    "key": "jj",
    "command": "vim.Esc",
    "when": "editorTextFocus"
}

Is jj be feasible?

@74th
Copy link
Owner

74th commented Jul 6, 2016

When use this extension, a keybinding without additional keys do not work.
But I hear same request. I'll try to support it.

74th added a commit that referenced this issue Jul 7, 2016
74th added a commit that referenced this issue Jul 12, 2016
@74th
Copy link
Owner

74th commented Jul 16, 2016

This option is supported now. Please try it.

// keys go to normal mode from insert mode (default: "" disable)
"vimStyle.imapEsc": "jj"

@mloskot
Copy link
Author

mloskot commented Jul 17, 2016

This is great, works like charm. Thank you so much!

@mloskot mloskot closed this as completed Jul 17, 2016
@seyhaheng2
Copy link

where to puts the code?

@74th
Copy link
Owner

74th commented Aug 10, 2017

@seyhaheng2
Please add to the user settings(F1->open user settings).

@seyhaheng2
Copy link

@74th thank you

@exhuma
Copy link

exhuma commented Aug 9, 2020

For the google-nauts: This no longer works. The working solution (as of 2020) can be found on StackOverflow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants