Try to set guifont; fall back if it doesn't exist
This commit is contained in:
parent
287756fc35
commit
dc1980778d
1 changed files with 5 additions and 1 deletions
6
vimrc
6
vimrc
|
|
@ -133,7 +133,11 @@ if has('gui_running')
|
||||||
if has('win32') || has('win64')
|
if has('win32') || has('win64')
|
||||||
set guifont=Inconsolata:h18
|
set guifont=Inconsolata:h18
|
||||||
elseif has('mac')
|
elseif has('mac')
|
||||||
set guifont=Menlo:h11
|
try
|
||||||
|
set guifont=Source\ Code\ Pro:h13
|
||||||
|
catch
|
||||||
|
set guifont=Menlo:h11
|
||||||
|
endtry
|
||||||
elseif has('linux')
|
elseif has('linux')
|
||||||
set guifont=Inconsolata\ 14
|
set guifont=Inconsolata\ 14
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue