set nocompatible source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin set diffexpr=MyDiff() function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif let eq = '' if $VIMRUNTIME =~ ' ' if &sh =~ '\ ' . arg3 . eq endfunction " " " customization to make vim more sexy " " " default color scheme colorscheme darkblue " default font, use "\ " to indicate space, :h10 is the font size set guifont=Bitstream\ Vera\ Sans\ Mono:h10 " backupdir to save all the temp file, the default folder is the same folder " of the file you are editing, this makes your working folder very messy set backupdir=$TEMP set directory=$TEMP " auto indent set cindent set autoindent set smarttab " indent size, 4 spaces in this case set ts=4 set sw=4 " not sure what does it mean, I copied it from online set cinoptions+=(1s " show line number set nu map