Using Adobe’s Source Code Pro in Vim


Source Code Pro
is a really nice font for programming, even though it comes from Adobe. I recently banged my head into a wall of too many inconsistent answers on the internet on how to use it inside gVim/MacVim. That’s why I’m just putting down the solution that finally workd for me.

" using Source Code Pro
set anti enc=utf-8
set guifont=Source\ Code\ Pro\ 11

To me the VimL esapes any logic, since there is no semantical separation between font basename, font style and the font size. Well, at least it works.

If you want to use another version of the font, let’s say bold, you just append it to the font name.

set guifont=Source\ Code\ Pro\ Bold\ 11

So here’s how it looks for me:


Leave a Reply

Your email address will not be published. Required fields are marked *