version 5.0
set shiftwidth=4
set nobackup
set graphic
set magic
set nowrap
set noshowcmd
set nowritebackup
set ruler
set showmode
set tabstop=4
syntax on

  " I like highlighting strings inside C comments
  let c_comment_strings=1

  " Switch on syntax highlighting.
  
  " Switch on search pattern highlighting.
  set hlsearch

au BufNewFile,BufReadPost *.c,*.h source $VIM\syntax\c.vim
au BufNewFile,BufReadPost *.c,*.h set cindent
au BufNewFile,BufReadPost *.cpp,*.cc source $VIM\syntax\cpp.vim
au BufNewFile,BufReadPost *.cpp,*.cc set cindent
au BufNewFile,BufReadPost *.tex source $VIM\syntax\tex.vim
au BufNewFile,BufReadPost *.tex set autoindent
au BufNewFile,BufReadPost *.java source $VIM\syntax\java.vim
au BufNewFile,BufReadPost *.java set cindent
au BufNewFile,BufReadPost *.html,*.htm source $VIM\syntax\html.vim
au BufNewFile,BufReadPost *.html,*.htm set smartindent


