~ pcon /.vimrc

" General stuff

set nocompatible
filetype on

set background=light
syntax on

set ruler
set noerrorbells
set nostartofline


" Text Formatting

" don't make it look like there are line breaks where there aren't:
set nowrap

" use indents of 2 spaces, and have them copied down lines:
set tabstop=5
set shiftwidth=5
set softtabstop=5
set shiftround
set noexpandtab
set noautoindent
set nosi

" search and replace stuff
set ignorecase
set smartcase

set tw=0

autocmd FileType python set tabstop=4 shiftwidth=4 softtabstop=4 expandtab
autocmd FileType c set tabstop=3 shiftwidth=3
autocmd FileType cpp set tabstop=3 shiftwidth=3
autocmd BufRead,BufNewFile *.txt set tabstop=5 shiftwidth=5 wrap

au BufEnter *.py,*.cpp,*.c,*.h exec 'match Todo /\%>80v.\+/'