Re: gvim7: 3 startup issues
- Zdenek SEKERA wrote:
> It surely looks like it thinks my tried fonts are not monospaced.That setting is for gvim with X11 _other_ than GTK+2 and kvim. In gvim
> To answer better your questions (I tested gvim-gtk2):
> - set guifont= no double space but I have no idea what font
> is being used
> - set guifont=screen15 (I don't have that font -> get double space)
> - set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
> -> get double space, I have that font and use it in xterm)
for GTK+2 it is not valid. Try
:set guifont=Fixed\ 13
>xlsfonts does show it, in xlsfonts format, probably as something
> I just tried your choice 'set guifont=courier\ 10' and it works.
> Hmmmm, I don't understand it.
> 'xlsfonts' doesn't show this font so I don't have so in all logic it
> should behave like the case above with 'screen15', but in this
> case I don't get double space. What's going on here ??
beginning "-misc-courier-medium-r-normal-". Instead of "misc", the first
part could be something else.
>See ":help setting-guifont" (if you have that helptag) to see the 4
> Would you or anyone know the way to findout what font is actually
> used in (g)vim???
different formats of 'guifont'. Each version of gvim accepts only one of
these formats. The format for 'guifont' in gvim for GTK+2 is <base
name><space><height>. The base name can include spaces, as in e.g.
:set guifont=Andale\ Mono\ 11
which means "11-point Andale Mono". This format is incompatible with
xlsfont. Remember that spaces in the value of an option (after the equal
sign in the ":set" statement) must be backslash-escaped.
On some systems, including GTK (I'm not sure about GTK+2), doing
will bring a pop-up menu similar to what you get for setting fonts in
other X11 or Windows applications. Another possibility, assuming you
have 'nocompatible' set, is to type
which will (on all flavours of gvim including those which don't
recognise ":set guifont=*") bring the current value on the command-line,
with backslash-escapes if and where needed. Edit it to your heart's
delight, then accept the new value with <Enter> or abandon the changes