macvim-dev / macvim-dev/macvim

`:highlight Group font=xyz` doesn't do anything.

オープン
#448 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Feature Request
主要言語
Vim Script
スター
7.9k
フォーク
691
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、文書化されているハイライトフォント設定と有効なハイライトグループを使って、Core Text レンダラーあり・なしで MacVim における :highlight フォントの動作を再現します。フォント属性が MacVim と core Vim のどちらで処理されているかを追跡し、その後、フォントが適用されるのか、それとも制限事項を文書化すべきなのかを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
macos, vim
領域
desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。