Re: [vim/vim] Gvim: ligatures are reshaped when cursor moves across constituent characters (Issue #20916)
Mao-Yining (Vim Github Repository) <[email protected]> Sun, 02 Aug 2026 17:08:58 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/20916/[email protected]> |
----==_mimepart_6a6fdc1ab0581_dc11601678e8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
mao-yining left a comment (vim/vim#20916)
> I believe you need to add the characters that make ligatures in `guiligat=
ures` (e.g. `set guiligatures=3D>=3D`). It seems that GVim on Windows if us=
ing DirectX to render always renders ligatures, even if the ligature charac=
ter is not specified in `guiligatures`
Ah. Thanks. After set that option. It works well while moving. What's more =
your patch fix another problem which I just find.
```
set guiligatures=3D!\"#$%&()*+-./:<=3D>?@[]^_{\|~
set guifontwide=3D:h12
```
Before (ghost cursor of insert mode):
https://github.com/user-attachments/assets/456f354e-ad3c-4bfd-9f35-a0615e0a=
c072
After:
https://github.com/user-attachments/assets/d7c0734c-fdb3-42a1-b124-64d26f3e=
1028
@64-bitman Could you make a PR for that?
--=20
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/issues/20916#issuecomment-5161006269
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/issues/20916/[email protected]>
--=20
--=20
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---=20
You received this message because you are subscribed to the Google Groups "=
vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim=
/vim/issues/20916/5161006269%40github.com.
----==_mimepart_6a6fdc1ab0581_dc11601678e8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div style=3D"display: flex; flex-wrap: wrap; white-space: pre-wrap; align-=
items: center; "><img height=3D"20" width=3D"20" style=3D"border-radius:50%=
; margin-right: 4px;" decoding=3D"async" src=3D"https://avatars.githubuserc=
ontent.com/u/101858210" /><strong>mao-yining</strong> left a comment <a hre=
f=3D"https://github.com/vim/vim/issues/20916#issuecomment-5161006269">(vim/=
vim#20916)</a></div>
<blockquote>
<p dir=3D"auto">I believe you need to add the characters that make ligature=
s in <code class=3D"notranslate">guiligatures</code> (e.g. <code class=3D"n=
otranslate">set guiligatures=3D>=3D</code>). It seems that GVim on Windo=
ws if using DirectX to render always renders ligatures, even if the ligatur=
e character is not specified in <code class=3D"notranslate">guiligatures</c=
ode></p>
</blockquote>
<p dir=3D"auto">Ah. Thanks. After set that option. It works well while movi=
ng. What's more your patch fix another problem which I just find.</p>
<pre class=3D"notranslate"><code class=3D"notranslate">set guiligatures=3D!=
\"#$%&()*+-./:<=3D>?@[]^_{\|~
set guifontwide=3D:h12
</code></pre>
<p dir=3D"auto">Before (ghost cursor of insert mode):<br>
<a href=3D"https://github.com/user-attachments/assets/456f354e-ad3c-4bfd-9f=
35-a0615e0ac072">https://github.com/user-attachments/assets/456f354e-ad3c-4=
bfd-9f35-a0615e0ac072</a></p>
<p dir=3D"auto">After:<br>
<a href=3D"https://github.com/user-attachments/assets/d7c0734c-fdb3-42a1-b1=
24-64d26f3e1028">https://github.com/user-attachments/assets/d7c0734c-fdb3-4=
2a1-b124-64d26f3e1028</a></p>
<p dir=3D"auto"><a class=3D"user-mention notranslate" data-hovercard-type=
=3D"user" data-hovercard-url=3D"/users/64-bitman/hovercard" data-octo-click=
=3D"hovercard-link-click" data-octo-dimensions=3D"link_type:self" href=3D"h=
ttps://github.com/64-bitman">@64-bitman</a> Could you make a PR for that?</=
p>
<p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&mda=
sh;<br />Reply to this email directly, <a href=3D"https://github.com/vim/vi=
m/issues/20916#issuecomment-5161006269">view it on GitHub</a>, or <a href=
=3D"https://github.com/notifications/unsubscribe-auth/ACY5DGHEB3C5LWIAS4YUS=
PL5H7JZVAVCNFSNUABEKJSXA33TNF2G64TZHM2DAOJZG42DQMR3JFZXG5LFHM2TAMZZGEZDINJS=
GGQXMAQ">unsubscribe</a>.<br />Triage notifications, keep track of coding a=
gent tasks and review pull requests on the go with GitHub Mobile for <a hre=
f=3D"https://github.com/notifications/mobile/ios/ACY5DGHBDBNXWOZSYZ3KEIT5H7=
JZVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWGEYDANRSGY42M=
4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSVGM33PORSXEX3JN5ZQ">iOS</a> and <a hre=
f=3D"https://github.com/notifications/mobile/android/ACY5DGC52AEYIYSVTMKOG2=
T5H7JZVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJWGEYDANRSG=
Y42M4TFMFZW63VKON2WE43DOJUWEZLEUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ">Android<=
/a>. Download it today!
<br />You are receiving this because you are subscribed to this thread.<img=
src=3D"https://github.com/notifications/beacon/ACY5DGAYLXSIIN3GSZSJXRD5H7J=
ZVBFCNFSM6AAAAAC4WB347OWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3=
TUL5UWJTYAAAAACM46WS62M4TFMFZW63VKON2WE43DOJUWEZLE.gif" height=3D"1" width=
=3D"1" alt=3D"" /><span style=3D"color: transparent; font-size: 0; display:=
none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: =
0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><vim/vi=
m/issues/20916/5161006269</span><span>@</span><span>github</span><span>.</s=
pan><span>com></span></span></p>
<script type=3D"application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/vim/vim/issues/20916#issuecomment-5161006269"=
,
"url": "https://github.com/vim/vim/issues/20916#issuecomment-5161006269",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
<p></p>
-- <br />
-- <br />
You received this message from the "vim_dev" maillist.<br />
Do not top-post! Type your reply below the text you are replying to.<br />
For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt=
p://www.vim.org/maillist.php</a><br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;vim_dev" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">vim_dev+uns=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
vim_dev/vim/vim/issues/20916/5161006269%40github.com?utm_medium=3Demail&utm=
_source=3Dfooter">https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/=
20916/5161006269%40github.com</a>.<br />
----==_mimepart_6a6fdc1ab0581_dc11601678e8--