From 9554add696b2716dab7b7ec7e7ec6e1e7c836036 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Sun, 18 Oct 2015 20:52:22 +0800 Subject: [PATCH] sync vimrc --- _vimrc | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/_vimrc b/_vimrc index 5ec13e8..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 @@ -156,6 +161,9 @@ set nobackup set nowb set noswapfile +" Turn off undo file, keep annoying "un~" file away +set noundofile + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Text, tab and indent related