A good .vimrc for coding

" set UTF-8 encoding
 set enc=utf-8
 set fenc=utf-8
 set termencoding=utf-8
" " disable vi compatibility (emulation of old bugs)
 set nocompatible
" " use indentation of previous line
 set autoindent
" " use intelligent indentation for C
 set smartindent
" " configure tabwidth and insert spaces instead of tabs
 set tabstop=4        " tab width is 4 spaces
 set shiftwidth=4     " indent also with 4 spaces
 set expandtab        " expand tabs to spaces
 set backspace=indent,eol,start
 set ruler

" " turn syntax highlighting on
 set drup_Co=256
 syntax on
" " colorscheme wombat256
" " turn line numbers on
 set number
" " highlight matching braces
 set showmatch
" " intelligent comments
 set comments=sl:/*,mb:\ *,elx:\ */
"
" " Install OmniCppComplete like described on
" http://vim.wikia.com/wiki/C++_code_completion
" " This offers intelligent C++ completion when typing ‘.’ ‘->’ or <C-o>
" " Load standard tag files
 set tags+=~/.vim/tags/cpp
 set tags+=~/.vim/tags/gl
 set tags+=~/.vim/tags/sdl
 set tags+=~/.vim/tags/qt4
 set mouse-=a 
 colorscheme elflord