-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map 'Esc' to 'Ctrl-[' or 'jk' #115
Comments
@Yohanna put in your |
Thanks but unfortunately this prevents the |
@Yohanna try this one https://marketplace.visualstudio.com/items?itemName=vscodevim.vim scroll to the bottom |
This only works with the |
hey,you can try my keymap |
Thanks a lot @liyiwei979621500 ! that did it. |
can't input j in insert mode... |
@wjljack you're right, I didn't notice this when I tried it earlier. |
need a better solution... |
Custom keybindings are not supported now.
|
Any update on this one? Is it possible to map custom keys soon? |
@davetorbeck |
I assume custom key mapping limitations would also affect remapping "j" as "gj", and "k" as "gk", right? |
@gnapse Besides, |
I have This is the extra config needed in the settings: "vim.otherModesKeyBindingsNonRecursive": [
{
"before": [
"k"
],
"after": [
"g",
"k"
]
},
{
"before": [
"j"
],
"after": [
"g",
"j"
]
}
], I tried to switch to amVim, because it gets at least one thing right that that other extension does not, but it does not support doing this, and also |
@gnapse I'll find a way to fully implement screen line/character movement. You cloud subscribe to #116 if you are interested. About Thank you for your feedback! |
@aioutecism How could I help with this? Could you give me an idea or rundown of where to look and how it might work? I'm happy to take a stab at building a PR for it! |
@austenc I haven't think thoroughly, here is the idea that came into my mind. We create a custom mapping option like this:
Then, inside We may want to parse the To understand the current implementation, you can start from here: Please feel free to ask if you have any questions. |
@aioutecism thanks for the response and direction! I was curious how the other vim plugin handled this and found this issue: 74th/vscode-vim#42. Would providing a similar config value for imap / esc key combination work? Looking at that config option it seems much simpler for the end user, although what you proposed would be more flexible for other use cases. |
@austenc
However, please let me know what you think. 😄 |
Love the idea of a more flexible setting, and am finally diving in to this to see if I can contribute. Could you perhaps explain how the I put a print statement in The work I've done so far (barely anything!) is here: master...austenc:custom-keybindings |
Currently, amVim creates a tree structure where each node represents one input from keyboard. E.g. In Normal mode, Another case, command such as Thus, |
Wow! Thank you for such a detailed description of how the plugin works and how you are thinking about the solution! This is very helpful! However.... I think some of these changes may be a bit over my head and are probably best left to you @aioutecism. Honestly, I've adapted to a capslock-as-escape-and-control setup on all my keyboards, so I don't find myself using |
There isn't posibility to change "esc" to another key comination yet? It's great plugin, but without "jk" key binding it's useless |
Is it possible to map the
Esc
key toCtrl-[
orjk
keys?The text was updated successfully, but these errors were encountered: