Try to set guifont; fall back if it doesn't exist

This commit is contained in:
Eryn Wells 2012-10-01 11:35:23 -07:00
parent 287756fc35
commit dc1980778d

6
vimrc
View file

@ -133,7 +133,11 @@ if has('gui_running')
if has('win32') || has('win64')
set guifont=Inconsolata:h18
elseif has('mac')
set guifont=Menlo:h11
try
set guifont=Source\ Code\ Pro:h13
catch
set guifont=Menlo:h11
endtry
elseif has('linux')
set guifont=Inconsolata\ 14
endif