syntax on " syntax highlighting on set lines=40 " window size: " no menu, and no toolbar: set guioptions-=m set guioptions-=T set history=50 " keep 50 lines of command line history set ignorecase " Do case insensitive matching set incsearch " Incremental search set matchtime=10 " Time to flash the brack with showmatch set showmatch " Show matching brackets. set sw=2 set ts=2 set expandtab "use spaces instead of tabulators" set smarttab set modeline set modelines=5 set ai " always set autoindenting on " set backup " keep a backup file " set backupdir=d:\home\tmp\vim\backup set directory=d:\home\tmp\vim\swap set ruler " show the cursor position all the time " moving up and down as in emacs cmap cmap " Suffixes that get lower priority when doing tab completion for filenames. " These are files I am not likely to want to edit or read. set suffixes=.bak,~,.o,.info,.swp,.obj " windows tab swapping, opening, closing like Firefox map :tabn map :tabp map :tabnew map :tabclose