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 " ---------------------------------------------------------------------------- " lines below added to the default " --------------------------------------------------------------------------- " turn off line wraping set nowrap " turn on line numbers set nu " turn on auto indenting set ai " set tab width in columns (4 makes python happy) set ts=4 " set auto indent in columns set sw=4 " expand tabs to spaces. Tabs are satan's tool... set expandtab " set smarttabs on set smarttab " don't be so sensitive with them searches.. set ignorecase " set window size 120 x 30 win 122 30 " don't auto create backups set nobackup " highlight matching brackets set showmatch " turn off the tearoff menus let &guioptions = substitute(&guioptions, "t", "", "g") " set colorscheme to desert :colo desert