Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

different fonts in each tab?

35 views
Skip to first unread message

Richard Mitchell

unread,
Nov 15, 2024, 11:26:25 AM11/15/24
to vim_mac
Is it possible to have different fonts or at least different sizes in each tab?
I'm assuming the answer is no but maybe I'm just holding it wrong.

Xell Liu

unread,
Nov 15, 2024, 7:19:32 PM11/15/24
to vim_mac
Yes, you can. And even better, you can have different fonts in different windows in the same tab. With goneovim [1], which implements neovim’s multigrid [2], you can simply use `GonvimGridFont "Font Name:h14"` [3] it offers to set up the font you like. Please see the attached screenshot for a preview.

BTW it is neovim. Sorry for that :-P

goneovim-multi-fonts.png

[1] https://github.com/akiyosi/goneovim
[2] https://neovim.io/doc/user/ui.html#ui-multigrid
[3] https://github.com/akiyosi/goneovim/wiki/Usage#independent-font-settings-per-window-experimental

Xell

Yee Cheng Chin

unread,
Nov 16, 2024, 2:01:13 AM11/16/24
to vim...@googlegroups.com
Richard, for MacVim, there is no MacVim specific way to make different tab have different fonts. But right now you could potentially set up autocmd for TabEnter to change guifont to whatever you like.

Regarding goneovim, I tried that feature out. It seems to still be experimental according to the README? It seems to be quite buggy as the moment I tried resizing a vertical split it starts to not draw correctly or leaves blank space. It's essentially permanently detaching said window using multigrid and so doesn't respond to split resizing anymore. Maybe it's still WIP? Still useful though.

--
--
You received this message from the "vim_mac" 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

---
You received this message because you are subscribed to the Google Groups "vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_mac+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_mac/3a9cb0b1-c0c0-4db5-bf10-c5c1e5b60a1fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages