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 if &sh =~ '\ ' . arg3 . '"' else silent execute '!C:\Program" Files\Vim\vim63\diff" ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 endif endfunction "set sw=4 "set ai "set sm set shiftwidth=4 " for <<, >>, ctrl-D, and ctrl-T set softtabstop=4 " tabs are still 8 chars, but hitting tab gives me 4 spaces set expandtab " This uses spaces instead of tabs, which could be useful " for when files I create are opened in non-vi editors; space " and code indent formatting will be preserved. Remember too " that :%retab will change tabs to spaces in a document " that uses tabs instead of spaces. "set autoindent " fairly stupid indenting "set smartindent " reasonably smart indenting "set cindent " fucking brilliant indenting for any C-like language set showmatch " show matching brackets and parens filetype indent on syntax sync minlines=20 "set guifont=Courier\ New set guifont=Courier_New:h10:cANSI " Make command line two lines high set ch=2 " Make shift-insert work like in Xterm map map! " Only do this for Vim version 5.0 and later. if version >= 500 " I do not like highlighting strings inside C comments " let c_comment_strings=1 " Switch on syntax highlighting. syntax on " Switch off search pattern highlighting. set nohlsearch " Hide the mouse pointer while typing set mousehide " Set nice colors " background for normal text is light grey " Text below the last line is darker grey " Cursor is green " Constants are not underlined but have a slightly lighter background "highlight Normal guibg=grey91 guifg=Black highlight Normal guibg=White guifg=Black highlight Cursor guibg=Black guifg=White highlight NonText guibg=bg guifg=fg " programming... highlight Comment guibg=bg guifg=grey50 highlight Constant guibg=bg guifg=Brown highlight Label guibg=bg guifg=Brown highlight Number guibg=bg guifg=Brown highlight Special guibg=bg guifg=DarkRed highlight Function guibg=bg guifg=DarkBlue highlight Type NONE highlight Type guibg=bg guifg=Purple highlight Statement NONE highlight Statement guibg=bg guifg=DarkGreen highlight StorageClass NONE highlight StorageClass guibg=bg guifg=DarkBlue " remove toolbar! set guioptions-=T " remove menus! set guioptions-=m " add horizontal scrollbar! set guioptions+=b " add printing of current line and char! set ruler " make it so that long lines don't wrap! set nowrap endif