" load bundles under ~/.vim/bundle/* execute pathogen#infect() " utf8. always utf8. set fileencoding=utf8 set fileencodings=utf8 " these seem reasonable set tabstop=4 set softtabstop=4 set shiftwidth=4 " display list of options when performing tab completion set wildmenu " color settings colorscheme slate syntax on " remove trailing whitespace when saving function StripTrailingWhitespace() if !&binary && &filetype != 'diff' normal mz normal Hmy %s/\s\+$//e normal 'yz normal `z endif endfunction autocmd BufWritePre * :call StripTrailingWhitespace() " display absolute line numbers in insert mode, relative otherwise " allow ^N to toggle between them on demand function! NumberToggle() if(&relativenumber == 1) set number else set relativenumber endif endfunc nnoremap :call NumberToggle() set relativenumber autocmd InsertEnter * :set number autocmd InsertLeave * :set relativenumber " ===== BUNDLE CONFIGURATION ===== " ctrlp.vim: let g:ctrlp_map='' "display fuzzy buffer search on ^P