After installing some new 4K screeas I found the fonts in Gvim a little too small for my steadily aging eyes. I knew how to select another font. But how could I put my choice into the .gvimrc settings file and make it permanent?
There was a handy link here:
https://askubuntu.com/questions/3531/how-to-save-font-choice-in-gvim
- Set the new font with the GUI [in Gvim]:
Edit->Select Font
- Enter this command:
:set gfn?
- Copy the string e.g.
guifont=Monospace 14
- Edit [or create] ~/.gvimrc and add the line:
set gfn=Monospace\ 14
Note: Must escape spaces (as above)
This also works for the Windows version of Gvim. [Note: Save the font setting in %userprofile%\_vimrc] ... Font names are a little more funky in Windows, however the interface is consistent.
G. Patterson.   T/A PGTS ABN: 99885392845