gvim menu appearance

61 views
Skip to first unread message

sb

unread,
Dec 3, 2008, 5:55:28 PM12/3/08
to vim...@googlegroups.com
Hi - using gvim in fluxbox the font in the menu comes up too large. Any
ideas for configuring it? My other gtk-2.0 fonts are okay, I guess I'm
missing something in .gvimrc?
Many thanks,
Steve

Tony Mechelynck

unread,
Dec 3, 2008, 10:05:20 PM12/3/08
to vim...@googlegroups.com

IIUC, the appearance of gvim titlebar and menus depend on the window
manager. Or are the gvim menus significantly different in appearance
from menus in other windows (for other programs)? You might want to post
a screenshot with a gvim window and some other window fopr comparison.


Best regards,
Tony.
--
Warning: Listening to WXRT on April Fools' Day is not recommended for
those who are slightly disoriented the first few hours after waking
up.
-- Chicago Reader 4/22/83

sb

unread,
Dec 4, 2008, 10:33:32 AM12/4/08
to vim_use
Tony - thanks, I'm using fluxbox. If I open nautilus the menu-bar has
a nine point font. When I open gvim from a terminal, I get the 9pt
menu-bar and a second menu below that, with the gvim options, in about
12pt. I'll post a screenshot later - when I'm back at the relevant
computer, and I work out how!
Steve

sb

unread,
Dec 4, 2008, 12:07:41 PM12/4/08
to vim_use
[IMG]http://i34.tinypic.com/24gstu0.png[/IMG]

here we are - no second menu (I may have fixed that too late last
night to remember how!)

At the top, a window running gvim. Beneath, a terminal window. I'd
like to get the font of the gvim menu bar the same as the terminal.

A trivial problem you'll say ...

Thanks for any ideas

Matt Wozniski

unread,
Dec 4, 2008, 12:17:56 PM12/4/08
to vim...@googlegroups.com

Looks like you're running a Motif gvim. Try switching to a GTK2 gvim
and it will probably look just like all your other applications.

~Matt

sb

unread,
Dec 4, 2008, 12:57:05 PM12/4/08
to vim_use
thanks Matt - can I set 'use gtk' anywhere, or should I have
configured it at build time?
Steve

sb

unread,
Dec 4, 2008, 1:35:11 PM12/4/08
to vim_use
doublethanks Matt,

for reference, in FreeBSD:
1. don't use the port (the configure script *appears* to be missing)
2. download the sources from freebsd.org or your favourite mirror
3. unzip and extract the tarball
4. cd to the folder, vim72 in my case
5. $ sudo ./configure --enable-gui=gtk2
6. $ sudo make && make install && make clean

Step 5 is the clincher - that's two " - " before enable.

My latex-suite add-on now looks usable!

Steve

Tony Mechelynck

unread,
Dec 4, 2008, 3:58:17 PM12/4/08
to vim...@googlegroups.com

At build time. See
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm for my Unix
Vim HowTo, including the script which bash must source (not run) to set
my configure options. It will pick GTK2 if it's available, which means
that you must have the GTK2 "development" packages installed (gtk2-devel
for RedHat or SuSE; on other distributions it might be gtk2-dev or even
something else). You can force GTK2 GUI by meeans of

export CONF_OPT_GUI='--enable-gui=gtk2'
or
export CONF_OPT_GUI='--enable-gui=gnome2'

instead of the corresponding line shown in my HowTo. The latter means a
GTK2 GUI with Gnome session support. On my system, with the options I
have (see the above URL), GTK2 is tested first (and found), Gnome2 is
also checked (and found) and that's the GUI I get regardless of other
installed GUI packages.

If configure (or make config or make reconfig) does not find the
requested GUI it will say it in its sysout/syserr (which you should
log), but I think it will proceed to set up the build for a non-GUI Vim,
so after building Vim (and before installing the new version) you should
always check

src/vim --version |more

to see if you got what you bargained for.

You can also check
less src/auto/config.cache
less src/auto/config.h
as soon as configure (or make config) has run, but it might be less
easily readable for a human.


Best regards,
Tony.
--
An extraordinary TALL KNIGHT in all black (possibly John with Mike
on his
shoulders) walks out from the dark trees. He is extremely fierce and
gruesome countenance. He walks towards KING ARTHUR and PATSY, who are
wazzing like mad. (Salopian slang, meaning very scared. almost to the
point of wetting oneself, e.g. before an important football match or
prior to a postering. Salopian slang meaning a beating by the school
praeposters. Sorry about the Salopian slant to this stage direction
- Ed.)
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD

Reply all
Reply to author
Forward
0 new messages