Proposed tip Please edit this page to improve it, or add your comments below (do not use the discussion page).
created February 16, 2008 · complexity basic · author Metacosm · version 7.0
In gvim, you can change the font using the Edit menu, Select Font. An alternative is to enter the command:
:set guifont=*
Once you have a font you like, you want to make it the default in the future. Do
:set guifont?
and Vim will display something like
guifont=Lucida_Console:h11
Make a note of this string. Now put a line in your vimrc to set guifont to this value, like this:
if has('gui_running') set guifont=Lucida_Console:h11 endif
Note: Do not forget to escape blanks in the font name with \
See also
- Setting the font in the GUI details
Comments
Am keeping this as a simple form of VimTip632 for newcomers.