macvim-dev / macvim-dev/macvim

Problem with delimitMate, gui and combining characters

未关闭
#302 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

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).

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 mvim -u NONE -U NONE -N 在 MacVim GUI 中复现该行为,在启用 delimitMate 之前 source autoload/delimitMate.vimplugin/delimitMate.vim。针对列出的组合字符和空格情况,将 GUI 输入与命令行 MacVim 进行比较;当两者都产生预期的字符和光标行为时即完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
macos, vim
领域
desktop, internationalization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。