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

Can't map enter key #2390

Closed
CodingJonas opened this issue Feb 18, 2018 · 3 comments
Closed

Can't map enter key #2390

CodingJonas opened this issue Feb 18, 2018 · 3 comments

Comments

@CodingJonas
Copy link

What happened:
Enter key in normal mode just goes to the next line.

What did you expect to happen:
I want to map the enter key to save the file in normal mode

How to reproduce it (as minimally and precisely as possible):
This is the part of my settings file:

    "vim.otherModesKeyBindingsNonRecursive": [
        {
            "before": ["<Enter>"],
            "after": [], 
            "commands": [
                {
                    "command": "workbench.action.files.save",
                    "args": []
                }
            ]
        },
        ....
  • Extension (VsCodeVim) version:
    0.10.13
@fhdhsni
Copy link

fhdhsni commented Mar 25, 2018

Use \n instead of <Enter>

@jpoon
Copy link
Member

jpoon commented Jun 17, 2018

Dupe of #2584

@jpoon
Copy link
Member

jpoon commented Jun 19, 2018

Took another look at the code. I was mistaken. Submitted a PR to fix this.

@jpoon jpoon closed this as completed in 86d4140 Jun 19, 2018
jpoon added a commit that referenced this issue Jun 19, 2018
fix: closes #2390. enables remapping using '<enter>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants