Gvim, the graphical version of vim is a pretty
cool addition to your existing vim editors. However, sometimes the default
font seems to be lacking and you may want to change it.
To do that, first go into your preferences and select the font you wish to
use. In Windows, this is Edit -> Select Font.
Then, in command mode, type
:set gfn?
You should get something like at the bottom of this picture: [caption
id=”attachment_309” align=”aligncenter” width=”300” caption=”Font name as
described by GVIM”]
[/caption]
This step is important, as it tells you how vim sets the font name
In my case, I chose the Windows font Lucida Console at 12 pixels, so GVIM
shows it as
guifont=Lucida_Console:h12:cANSI
What we need to do, is now edit your
.vimrc
and add the following line:-
set guifont=Consolas:h12:cANSI
The next time you launch GVIM, the default font should be Lucida Console.