Skip to content

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

Open

Description

@ychin

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

Activity

  1. added
    InputIssues related to keyboard or other types of input
    on Feb 19, 2019
  2. eirnym commented on Jun 13, 2019

    @eirnym
    Contributor

    Related issues(Possible duplicates): #389 #610 #768

  3. eirnym commented on Jun 13, 2019

    @eirnym
    Contributor

    also #868

  4. ychin commented on Jun 17, 2019

    @ychin
    MemberAuthor

    I feel that those issues all have slight subtle differences and prefer for them not to be closed out as dups. I have already tagged the label "Input" for all of them which should be sufficient for linking them together for now.

  5. eirnym commented on Jun 17, 2019

    @eirnym
    Contributor

    I don't say that they're dups, but the same underlying nature of CoreText processing. I won't be surprised if Terminal.app first takes a keystroke first, and only then processes it and puts it into a text field.

  6. ychin commented on Jun 21, 2019

    @ychin
    MemberAuthor

    That's fair. Most of these meta key issues have to do with how Vim itself works (some of the linked issues have some discussions on them) and how GVim thinks of itself as an "8bit" terminal by just setting the 8th bit when meta key is pressed (which doesn't work for a lot of non-ASCII input). MacVim can fix these issues itself but it will make upstream merges a lot more painful. Ideally Vim can change how it handles meta key better but that's a wider discussion. I think NeoVim has already found a good solution tbh (but that doesn't mean Vim has to do the exact same thing).

  7. added this to the Backlog milestone on Nov 14, 2019
  8. modified the milestones: Backlog, Release 175 on Aug 9, 2022
  9. modified the milestones: Release 175, Release 176 on Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    InputIssues related to keyboard or other types of input

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions