How to Set menu size on gvim

73 views
Skip to first unread message

Tim Johnson

unread,
Apr 7, 2024, 6:20:29 PMApr 7
to MLVim
I am using gvim version 8.2 on ubuntu 22.04,
Huge version with GTK3 GUI.

How may I set the menu size to a larger font?

I have found instructions for versions with Athena or Motif but none that are current
for modifying menu sizes on versions with GTK3.

Thanks
-- 
Tim
thjm...@gmail.com

Tony Mechelynck

unread,
Apr 7, 2024, 6:34:52 PMApr 7
to vim...@googlegroups.com, thjm...@gmail.com
The Menu highlight group is supposed to set font, foreground colour
and background colour for the menus and toolbar (see :help hl-Menu);
however in my current gvim system (with GTK3 GUI) this highlight group
is not set, and I haven't tried to set it to see if it made the menu
font change. (The menus are displayed.)

Best regards,
Tony.

Tim Johnson

unread,
Apr 7, 2024, 7:50:51 PMApr 7
to Tony Mechelynck, vim...@googlegroups.com
Tony, it sounds like you are having the same problem as I. For me, with my current monitor
and my present eyesight, having menu so small makes it really hard to work with.
What I know is there is a GTK resource file, but the only info that I have found is not very
current. I don't know what to name the resource file (.gtkrc or .gtkrc-3.0) and what syntax
to use in it.

:h hl-menu on my setup says nothing about GTK. (sigh)

thanks for the reply.

-- 
Tim
thjm...@gmail.com

rob

unread,
Apr 7, 2024, 8:30:49 PMApr 7
to vim...@googlegroups.com, thjm...@gmail.com

in my _gvimrc file is this line

set guifont=Lucida_Console:h12:cANSI:qDRAFT

Try :h guifont and :h gui-font for something that works for you

Like you, I need a larger font for eyes over 65 :-)

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/06d13eb9-3136-4f74-a5c6-c0e197777f3c%40gmail.com.

Tim Johnson

unread,
Apr 7, 2024, 8:47:22 PMApr 7
to r...@drrob1.com, vim...@googlegroups.com
On 4/7/24 16:30, rob wrote:

in my _gvimrc file is this line

set guifont=Lucida_Console:h12:cANSI:qDRAFT

Try :h guifont and :h gui-font for something that works for you

Like you, I need a larger font for eyes over 65 :-)

Heck, I can't even  see 65 in the rear-view mirror.

Thanks for the reply. It appears that set guifont is for text only. I have been using set guifont=Monospace\ 15, which works
well for me, but the menu remains teeny-tiny.

I think part of the solution entails setting up the correctly named gtk resource file (whether it is named ~/.gtkrc or ~/.gtkrc-3.0, I
just don't know yet) containing the correct syntax. And then referencing a highlight/font name with the correct vim command.
cheers
-- 
Tim
thjm...@gmail.com

Tim Johnson

unread,
Apr 8, 2024, 6:32:44 PMApr 8
to MLVim
On 4/7/24 13:04, Tim Johnson wrote:
I am using gvim version 8.2 on ubuntu 22.04,
Huge version with GTK3 GUI.

How may I set the menu size to a larger font?

I have found instructions for versions with Athena or Motif but none that are current
for modifying menu sizes on versions with GTK3.

See https://git.entwicklerseite.de/vim/tree/utils/gtk-3.0.css?h=master&id=ed803af15c2caa1f6e3bcf4454a2e5a354d77bab
copy and paste into ~/.config/gtk-3.0/gtk.css

and "Bob's yer uncle" as Daphne Moon would say. Edit at yer heart's content.
Yay.

-- 
Tim
thjm...@gmail.com
Reply all
Reply to author
Forward
0 new messages