VSCodeVim / VSCodeVim/Vim

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

Open
#7,292 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

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. **

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README sections covering vimrc key bindings and VS Code keybindings, then compare them with the reported , , and cursorRight examples. Document the available key names and clarify how Alt-key bindings should be configured; done means a newcomer can identify the correct syntax without searching elsewhere.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
developer-experience, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.