This didn't used to matter until my eyes went south recently.
In Windows 10 gVim, the font defaults to Font=Fixedsys
Font style=Regular
Size=9
But there are no other size options for that specific font.
gVim:Edit > Select font > {Font,Font style,Size}
However, there are other fonts with larger sizes such as
Font=Unispace
Font style=Bold
Size=20
But the setting doesn't stick in the GUI.
How do make the font selection permanent in the Windows gVim tool?
Seems like a "test" for the operator, to see if they're a Level 37 wizard or not :-)
https://www.vim.org/download.php
gvim_9.1.0_x64_signed.exe (64bit installer) <=== Unpack with 7ZIP, "Open Archive"
gvimrc_example.vim
To use it, copy it to
for Unix: ~/.gvimrc
for Amiga: s:.gvimrc
for MS-Windows: $VIM\_gvimrc <=================== I hope that isn't C:\Program Files area :-)
for Haiku: ~/config/settings/vim/gvimrc
for OpenVMS: sys$login:.gvimrc
set the X11 font to use <=== hahaha!
set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1
I wonder how they got a GUI in Windows ?
"My .vimrc (Windows, GVIM)" https://gist.github.com/wheeyls/1114301/b1ea725788ede665902f6d4880d5078612e3adab
"set guifont=courier_new:h10 <=== commented out
set guifont=Monaco,"ProggyTinySZ",Courier\ New:h10,Courier,Lucida\ Console,Letter\ Gothic,
\Arial\ Alternative,Bitstream\ Vera\ Sans\ Mono,OCR\ A\ Extended
From this we learn (naturally actually) that there are two gvimrc files.
The system one is in $VIM, the user one is in $HOME.
https://superuser.com/questions/86246/where-should-the-vimrc-file-be-located-on-windows-7
For Vim 7.4, these are the paths it looks for on Windows
system vimrc file: "$VIM\vimrc"
user vimrc file: "$HOME\_vimrc"
2nd user vimrc file: "$HOME\vimfiles\vimrc"
3rd user vimrc file: "$VIM\_vimrc"
user exrc file: "$HOME\_exrc"
2nd user exrc file: "$VIM\_exrc"
system gvimrc file: "$VIM\gvimrc"
user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
3rd user gvimrc file: "$VIM\_gvimrc"
system menu file: "$VIMRUNTIME\menu.vim"
For example, one good place for gvim-specific settings would be
C:\Users\MyUsername\_gvimrc
The download "gvim_9.1.0_x64_signed.exe" smells vaguely of NSIS, and
I would not put it past them to put that in C:\Program Files. Which is
fine, as the "system vimrc" will be in there. And as the user you will
only be editing the "C:\Users\MyUsername\_gvimrc" one.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 361 |
Nodes: | 16 (2 / 14) |
Uptime: | 123:19:26 |
Calls: | 7,716 |
Files: | 12,861 |
Messages: | 5,727,955 |