VSCodeVim / VSCodeVim/Vim

Can't type words using dead keys (like "já") with imap jk Esc and iBus enabled

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

Describe the bug
VSCodeVim mistakes keystrokes when iBus is enabled, a composed imapping is enabled and a dead key is pressed.

To Reproduce

  1. Use this on vimrc: imap jk <Esc>
  2. Enable iBus (Linux)
  3. Enter insert mode
  4. Try to type fast: (key j, key `, key a)
  5. It displays some random text, like ´lj´ (with grave accents around, can't display them here because of markdown

Expected behavior
Display the desired word

Screenshots

Image

Image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.30.1
  • VSCode version: 1.103.2
  • OS: Linux Mint Cinnamon 21.3 64-bit

Additional context
Add any other context about the problem here.

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 issue with iBus enabled, imap jk <Esc>, and the input sequence j, dead key, a on Linux. Trace the extension's keyboard and insert-mode handling to find where composed characters are altered; done means is displayed correctly without breaking the mapping behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
desktop, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.