From 261ac945775a516429393bc1747e72feaa77efff Mon Sep 17 00:00:00 2001 From: boput Date: Mon, 16 Nov 2015 12:34:12 -0800 Subject: [PATCH] Update my_configs.vim --- my_configs.vim | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/my_configs.vim b/my_configs.vim index 28a79f8a..379babfe 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -7,7 +7,17 @@ set noshowmode " Block can move outside of bounds" set virtualedit=block -set guifont=Source\ Code\ Pro:h11 +" Set font according to system +if has("mac") || has("macunix") + set guifont=Source\ Code\ Pro:h15,Menlo:h15 +elseif has("win16") || has("win32") + set guifont=Source\ Code\ Pro:h12,Bitstream\ Vera\ Sans\ Mono:h11 +elseif has("linux") + set guifont=Source\ Code\ Pro\ h12,Bitstream\ Vera\ Sans\ Mono:h11 +elseif has("unix") + set guifont=Monospace\ 11 +endif +" set guifont=Source\ Code\ Pro\ 11 nmap rb :call DeleteTrailingWS()