From f492c2dc7a179f9f4f6c4432a8f1e86ddb0ab6e0 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sun, 18 Oct 2015 15:45:15 +0800 Subject: [PATCH] sync _vimrc and .vimrc --- .vimrc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index 870aac6..2bc230b 100644 --- a/.vimrc +++ b/.vimrc @@ -64,7 +64,9 @@ set scrolloff=8 " gVim automatically maximize when it open " 启动时最大化gVim " http://superuser.com/questions/140419/how-to-start-gvim-maximized -au GUIEnter * simalt ~x +if g:iswindows + au GUIEnter * simalt ~x +endif " 如下命令使鼠标用起来象微软 Windows behave mswin @@ -142,10 +144,13 @@ endif set nobomb "不自动设置字节序标记 -set guifont=Courier\ New\:h12 -" set guifont=Droid\ Sans\ Mono\ for\ Powerline\:h12 -set guifontwide=NSimsun\:h12 - +if g:iswindows + set guifont=Courier\ New\:h12 + " set guifont=Droid\ Sans\ Mono\ for\ Powerline\:h12 + set guifontwide=NSimsun\:h12 +else + set guifont=Monaco:h12 +endif """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Files, backups and undo