Using GVIM version 9 on Windows 11 23H2, I use Edit > Select Font to choose Lucida Console size 12 and it works as expected. When I type :set guifont? I see
set guifont=Lucida_Console:h12:cANSI:qDRAFT
If I start gvim and use the command line instead, it also works:
:set guifont=Lucida_Console:h12:cANSI:qDRAFT
I want this for every session. I have tried several things:
put the line into
.gvimrc:set guifont=Lucida_Console:h12:cANSI:qDRAFTput it into
.vimrcwith test forgui_running:if has('gui_running') set guifont=Lucida_Console:h12 endifput the line into a
.vimrcthat contains other configurations that do work, so I know the.vimrcis being readtried it with
Consolasinstead ofLucida_Console
In every case, I get only the standard tiny font.
How can I make this work? Thanks.
PS I have googled and searched stackoverflow without finding an answer.
In windows the vimrc file for GVIM is called _vimrc and must be either in the directory C:\Users\UserName or in \ C:\Program Files (x86)\Vim.