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 <BS> (backspace...), consider 4 spaces a tab.
set softtabstop=4
" Inherit the indentation from the previous line when <CR>'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 <F5> :tabp<CR>
map <F6> :tabn<CR>
map <F7> :w<CR>:tabc<CR>
" I hate typing :.
map <Leader>v :tabe ~/.vimrc<CR>
map <Leader>u :source ~/.vimrc<CR>
map <Leader>te :tabe
map <Leader>e :e
map <Leader>n :set number!<CR>

""" Python snippets.
" Code completion.
autocmd FileType python set omnifunc=pythoncomplete#Complete
inoremap <Nul> <C-x><C-o>

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