Skip to content
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

Need a vimrc keylist and <A-key> bind description #7292

Open
yunlongYoung opened this issue Nov 30, 2021 · 2 comments
Open

Need a vimrc keylist and <A-key> bind description #7292

yunlongYoung opened this issue Nov 30, 2021 · 2 comments

Comments

@yunlongYoung
Copy link

yunlongYoung commented Nov 30, 2021

Is your feature request related to a problem? Please describe.
When I input the ( [ {, the editor will automaticly generate the ) ] } for me. That is good.
Usually when I input all the thing in the brackets, there are two situations:

  1. I wanna go to the next line, the I input <Esc>o, perfect for me.
  2. I wanna input : or ; at end of line, then I should move fingers to arrowkey. That is tedious.

so I wanna to bind <A-l> to <right>, use this vimrc

    "vim.insertModeKeyBindingsNonRecursive": [

        {
            "before": [
                "<A-l>"
            ],
            "after": [
                "<Right>"
            ]
        },

No effect! I thought maybe it's not <Right>, maybe <RightArrow> or something else, so I need a keylist in vimrc.
So I searched in the google, wanna find a vimrc keylist. But for noob like me, it's difficult.
The key mapping is a import thing in vimrc, but I can not find the keylist, which I can use after "before" or `"after".

Then I read the README, found another method maybe works.
New vimrc:

    "vim.insertModeKeyBindingsNonRecursive": [

        {
            "before": [
                "<A-l>"
            ],
            "commands": [
                "cursorRight"
            ]
        },

I used a lot time on this, that is not environmentally friendly.

Finally, I used <CR> in vimrc to test:

    "vim.insertModeKeyBindingsNonRecursive": [

        {
            "before": [
                "<CR>"
            ],
            "after": [
                "<Right>"
            ]
        },

and

    "vim.insertModeKeyBindingsNonRecursive": [

        {
            "before": [
                "<CR>"
            ],
            "commands": [
                "cursorRight"
            ]
        },

They both work. Then I thought this is a bug, which vimrc won't work for <A-key>. Then I searched in the issue, find others' solution.
I did know that I need to bind Alt+ in the Setting:keybindings.

Describe the solution you'd like
maybe someone else want **a keylist or Alt key need bind in keybindings description in the README. **

@drpasionek
Copy link

drpasionek commented Dec 1, 2021

I feel that this is related to: #2713

Definitely want to see alt+ key bindings, they are a huge part of my Vim bindings, and it's unfortunate I feel like I can't use VS Code the way I want because I so heavily rely on alt+ bindings.

@ownself
Copy link

ownself commented Jan 26, 2022

This is an old topic, one day they do not support this, one day I won't try to use VSCode as my code editor....

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

No branches or pull requests

3 participants