Saturday, November 3, 2012

Setting guifont in .gvimrc goes wrong

Hi,

Perhaps it is me doing something stupid, but I am not able to set a
specific font *and* font size in my .gvimrc. Here is what I did.

1) I patched Ubuntu Mono using the instructions in [1] and installed
this font properly (I can select it and choose the added symbols).

2) I typed :set guifont=Ubuntu\ Mono\ for\ Powerline\ 12 and confirmed
with Ctrl-v + u + 2b60 that the correct font was selected (the added
branch symbol appeared).

3) I changed the guifont line in my .gvimrc to

set guifont=Ubuntu\ Mono\ for \ Powerline\ 12

4) I restarted Vim, but it fell back to a default sans serif font

5) I changed the guifont line to

set guifont=Ubuntu\ Mono\ for \ Powerline

6) Restarted Vim again and the correct font was selected, but the font
size was wrong (defaults to 10, I think).

7) Did 2) again and the size was correct again.

Now, why can't I select this font *and* the font size in my .gvimrc?
Originally, `set guifont=Ubuntu\ Mono\ 12` in my .gvimrc worked
correctly. What am I doing wrong?

Thanks in advance.

Marcel

[1] https://github.com/Lokaltog/vim-powerline/tree/develop/fontpatcher#linux

--
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

No comments:

Post a Comment