macvim-dev / macvim-dev/macvim

Normal mode 'r' key doesn't work with macron / IM input

Open
#837 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Input
Dominant language
Vim Script
Stars
7.9k
Forks
691
PR merge metrics
No merged PRs in 30d

Description

In macOS, you can enter macron input using an Option key sequence. E.g. Typing <M-e>, then i should result in "í" being inputted. This works in insert mode, but if you do this in the replace mode (r command in normal mode) it doesn't work. The above key sequence will enter ´, while the i will be ignored.

This can be worked around by disabling "Draw marked text inline" in advanced preferences but is not ideal, and there may be issues with how the replace mode interfaces with other input methods (IM) as well, so investigate and fix that.

Original discussion: https://groups.google.com/forum/#!topic/vim_mac/9JuxOuUFqgg

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 macOS Option-key sequence in replace mode (r) and compare it with insert mode, focusing on marked-text and input-method handling. Done means the sequence produces the accented character while replacing a character, without disabling “Draw marked text inline.”

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, vim
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.