74th / vscode-vim

vim emulator for Visual Studio Code
MIT License
215 stars 25 forks source link

Allow jj for Esc #42

Closed mloskot closed 7 years ago

mloskot commented 8 years ago

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 commented 8 years ago

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

74th commented 7 years ago

This option is supported now. Please try it.

// keys go to normal mode from insert mode (default: "" disable)
"vimStyle.imapEsc": "jj"
mloskot commented 7 years ago

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

seyhaheng2 commented 6 years ago

where to puts the code?

74th commented 6 years ago

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

seyhaheng2 commented 6 years ago

@74th thank you

exhuma commented 3 years ago

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