macvim-dev / macvim-dev/macvim

Problem with delimitMate, gui and combining characters

Open
#302 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm having this issue with delimitMate, but it doesn't happen with vim or gvim on linux, and it doesn't happen with MacVim on the command line, I can only reproduce it on the MacVim gui, so I'm starting to think the problem isn't the plugin.


Here are the exact steps to reproduce:

  1. mvim -u NONE -U NONE -N

  2. :so ~/.vim/bundle/delimitMate/autoload/delimitMate.vim<cr>

  3. :so ~/.vim/bundle/delimitMate/plugin/delimitMate.vim<cr>

    (the files have to be there, obviously)

  4. :DelimitMateOn<cr>

  5. i<m-`>a (that's option + `, without macmeta)

    This should type à, but instead it types `à``. It only happens in the MacVim gui, at the command line it works as it should.

  6. ```

    This should result in | (| is the cursor), but instead it does just ```. Again, it only happens in the gui.

The steps above use the regular US keyboard profile. I'm actually using the US International keyboard profile, which has many more combining characters, and this happens with others too (so this problem has nothing to do with the meta key, which isn't used with the other profile).

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 behavior in the MacVim GUI with mvim -u NONE -U NONE -N, sourcing autoload/delimitMate.vim and plugin/delimitMate.vim before enabling delimitMate. Compare GUI input with command-line MacVim for the listed combining-character and space cases; done when both produce the expected character and cursor behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.