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

Remap of ['j', 'j'] to ['<Esc>'] deletes character if insertion is repeated with dot '.' #4814

Closed
lalexf opened this issue May 7, 2020 · 0 comments · Fixed by #4829
Closed

Comments

@lalexf
Copy link

lalexf commented May 7, 2020

Describe the bug
If you remaped jj to esc in insert mode, repeating the last insertion with dot command delete the character behinde the insertion.

To Reproduce
Steps to reproduce the behavior:

  1. map jj to esc in insert mode:
    "vim.insertModeKeyBindings": [
        {
            "before": [
                "j", "j"
            ],
            "after": [
                "<Esc>"
            ]
        },
    ]

bug

Expected behavior
Pressing dot '.' results in functionName(foo).

Environment:

  • Extension Version: 1.14.1
  • OS Version: Windows_NT x64 10.0.18363
  • VSCode version: 1.44.2
@lalexf lalexf changed the title Remap of ['j', 'j'] to ['<Esc>'] deletes character if insert is repeated with dot '.' Remap of ['j', 'j'] to ['<Esc>'] deletes character if insertion is repeated with dot '.' May 7, 2020
@J-Fields J-Fields self-assigned this May 8, 2020
berknam added a commit to berknam/Vim that referenced this issue May 11, 2020
- Fix DotCommand deleting extra character when used after a remapped <Esc> in insert mode
Fixes VSCodeVim#4817 and VSCodeVim#4814

- Fix remapped <Esc> leaving trailing character when used with multiple cursors
Fixes VSCodeVim#4811
berknam added a commit to berknam/Vim that referenced this issue May 11, 2020
- Fix DotCommand deleting extra character when used after a remapped <Esc> in insert mode
fixes VSCodeVim#4817
fixes VSCodeVim#4814

- Fix remapped <Esc> leaving trailing character when used with multiple cursors
fixes VSCodeVim#4811
@J-Fields J-Fields removed their assignment May 11, 2020
J-Fields added a commit that referenced this issue May 12, 2020
- Fix DotCommand deleting extra character when used after a remapped <Esc> in insert mode
Fixes #4817
Fixes #4814

- Fix remapped <Esc> leaving trailing character when used with multiple cursors
Fixes #4811

Co-authored-by: Jason Fields <jasonfields4@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants