macvim-dev / macvim-dev/macvim
`:highlight Group font=xyz` doesn't do anything.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Vim Script
- Sterne
- 7.9k
- Forks
- 691
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Hi! I wanted to try to do this trick in MacVim, basically using two different fonts at the same time (specifically Fira Code for operator ligatures and Operator Mono for everything else).
Looking through the docs, it seemed like setting the font on a highlight group was my best bet (like :highlight MyGroup font='Fira Code:h16') but it didn't work. If i misspell the font's name it generates an error which it doesn't normally, so it's clearly recognizing the font-name. But nothing happens, it doesn't actually apply the font to the highlight group in MacVim (I also checked that the group was a valid group by changing guifg=white, and it is valid). I'm using Core Text renderer, but it seems like it doesn't work either way.
I don't know if this is a problem with core vim or MacVim, but it seemed to be a GUI issue, so I'm reporting it here. If it's a known limitation of MacVim, it should probably be noted in the docs.
BTW, given that this is my first time communicating with this project: thanks for all your hard work and for providing the best GUI version of Vim there is! MacVim is so much better than the options on other OS's, at least as far as I've tried.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Verhalten der :highlight-Schriftart in MacVim mit und ohne den Core-Text-Renderer zu reproduzieren, wobei du die dokumentierte Einstellung für die Highlight-Schriftart und eine gültige Highlight-Gruppe verwendest. Verfolge, ob das Schriftattribut von MacVim oder core Vim verarbeitet wird, und bestätige anschließend, ob die Schriftart angewendet wird oder die Einschränkung dokumentiert werden sollte.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- macos, vim
- Bereich
- desktop
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100