Vim keybindings don't work with Japanese keyboard

Open
#153 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, vim
Domain
frontend

Research direction

No file or test is named. Start by reproducing the Vim keybinding behavior on macOS in Chrome and Safari with Japanese Kana and Romaji input sources, then trace the Codemirror Vim extension's keyboard handling. Done means identifying the browser/input-source difference and adding a verified fix or a documented limitation with regression coverage.

Written by the indexing model from the issue text.

Description

Hello,

I've been investigating an issue related to the use of Japanese input sources with the Codemirror Vim extension in different browsers and environments.

I tried reproducing it on mac, using these as input sources:

  • Japanese - Kana: This input source doesn't work in any browser and is even broken in the vim editor itself when used in terminal (even though there are workarounds to make it work).
  • Japanese - Romaji: This behaves differently in Chrome and Safari. In Safari, it's mostly non-functional. In Chrome, pressing 'j' moves the cursor two lines down instead of one, and entering insert mode not only activates it but also adds an extra character to the text.

I tried to find out what is the cause for this, but couldn't figure it out.
Opening an issue here to track and in case you have some ideas. Thanks!

Dominant language
JavaScript
Stars
470
Forks
53
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from replit/codemirror-vim

All issues in replit/codemirror-vim

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.