Change font
From Vim Tips Wiki
(Redirected from Change GUI Font)
Tip 1587 Previous Next 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
Note: If there is a space in the text printed, such as
guifont=Monospace 10
it may be necessary to escape the space
set guifont=Monospace\ 10
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 \
[edit] See also
- Setting the font in the GUI details
[edit] Comments
Am keeping this as a simple form of VimTip632 for newcomers.
