开发者

Gvim: Ubuntu letter spacing (Consolas font)

Thought I could just copy my vimrc from my Windows to my Li开发者_如何学编程nux box but running into a few problems with the letter spacing on Ubuntu.

Gvim: Ubuntu letter spacing (Consolas font)

Hope this is the right place to ask this question with all these new stackexachange sites.

Update:

The font is correctly installed I think. From the menu I can select it and it works fine.

Gvim: Ubuntu letter spacing (Consolas font)


AFAIK the :h thing only works on Windows and OS X, in Linux it should be

:set guifont=Consolas\ 11

The weird display is usually caused by wrong font setting. If you are using gvim in different OSs, you can put this to your .gvimrc:

if has("gui_gtk2")
    set guifont=Consolas\ 11
elseif has("gui_macvim")
    set guifont=Consolas:h12
elseif has("gui_win32")
    set guifont=Consolas:h11
end


I don't know what the :h directive is supposed to do, but

:set guifont=Consolas:h11

yields horrible intraletter spacing, but

:set guifont=Consolas\ 11

is fine. (But set guifont=Droid\ Sans\ Mono is better still ;)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜