Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use gvim on Windows. By default it uses the Fixedsys font, but I would like to use Consolas as the default font instead.

I tried to set it using the menu option; it worked but it was reset the next time I started gvim.

How can I set the default font in gvim? Can I add anything to .vimrc?

share|improve this question
up vote 6 down vote accepted

i would add it to _gvimrc, the relevant part of mine looks like this:

if has("gui_kde")
    set guifont=Consolas/13/-1/5/50/0/0/0/0/0
elseif has("gui_gtk")
    set guifont=Consolas\ 13
elseif has("gui_running")
    if has("win32") || has("win64")
        set guifont=Consolas:h12
        set guifont=-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1
share|improve this answer
Not sure where the _gvimrc file is located on Windows? This question will help you find it: – Steve HHH Feb 23 '13 at 0:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.