VSCodeVim / VSCodeVim/Vim

Key binding not working as expected

Open
#8,173 0 comments 0 reactions 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

I have a key bind in my Vim like this: inoremap .<space><space> <Esc>la. and it's working fine. It's a good solution for typing code like this func(arg).anything without using arrows or changing the mode. But use my .vimrc or use config below not working as expected:

"vim.insertModeKeyBindings": [
        {
            "before": [".", "<space>", "<space>"],
            "after": ["<Esc>", "l", "a", "."]
        }
    ],

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 by reproducing the reported mapping with the provided vim.insertModeKeyBindings configuration and compare it with the working Vim inoremap example. Confirm the expected behavior is that pressing . in insert mode produces the intended escape, move, append, and period sequence without manual mode changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.