set guifont=Monaco:h14
set background=light
set shortmess=atI
set cindent autoindent number sts=4 sw=4 ts=4 et
set nobackup
filetype on
filetype plugin on
filetype indent on
autocmd FileType python set omnifunc=pythoncomplete
setlocal noswapfile
set bufhidden=hide
syntax on
set nocompatible
set backspace=indent,eol,start
func! DeleteTrailingWS()
exe "normal mz"
%s/\s\+$//ge
exe "normal `z"
endfunc
autocmd BufWrite *.py,*.t2t,*.sh :call DeleteTrailingWS()