iravid /.vimrc

" Screw vi!
set nocompatible


""" Indentation stuff.
" Set tabsize to 4 spaces.
set ts=4
" When using >/<, indent by 4 spaces.
set shiftwidth=4
" Expand tabs to spaces.
set expandtab
" When using  (backspace...), consider 4 spaces a tab.
set softtabstop=4
" Inherit the indentation from the previous line when 'ing.
set autoindent


""" Colors
syntax enable
set bg=dark

""" Misc.
" Always display the status line.
set ls=2
" Reference the python2.5 library tags.
set tags+=$HOME/.vim/tags/python.ctags
" Ignore these when tabcompleting
set wildignore=*.pyc
set includeexpr=substitute(v:fname,'\\.','/','g')
" Hate those damn visual bells
set vb t_vb=

""" Keybindings
let mapleader = ","
map  :tabp
map  :tabn
map  :w:tabc
" I hate typing :.
map v :tabe ~/.vimrc
map u :source ~/.vimrc
map te :tabe
map e :e
map n :set number!

""" Python snippets.
" Code completion.
autocmd FileType python set omnifunc=pythoncomplete#Complete
inoremap  


""" TODO: find out what these lines do...
filetype plugin on
filetype indent on