VSCodeVim / VSCodeVim/Vim

Rendering error occur when vim is waiting for subsequent shortcuts in insert mode

Open
#9,117 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

Bug description
I remapped <Space><Space> to <Esc> in insert mode. I want to input a space character if the space key is hit once and switch to normal mode if the space key is hit twice rapidly. But when the space key is hit once, the characters are "shifted down".
Peek 2024-07-05 13-13

To Reproduce
Steps to reproduce the behavior:

  1. remap <Space><Space> to <Esc> in insert mode
  2. switch to insert mode
  3. hit space key once
  4. See error

Environment:

  • Extension (VsCodeVim) version: 1.27.3 (latest)
  • VSCode version: 1.91.0 ea1445cc7016315d0f5728f8e8b12a45dc0a7286 x64 (latest)
  • OS: Manjaro Linux x86_64

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

Reproduce the issue in VSCodeVim using the insert-mode mapping to , then inspect the extension's insert-mode key handling and rendering path. Done means a single space is rendered normally while two rapid spaces switch to normal mode without shifted characters or an error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vim, vscode
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.