" vim: sts=2 sw=2

if has('perl')

    perl <<PERL
use File::Spec;

@INC = map { File::Spec->rel2abs($_) } @INC;
PERL

endif

let old_verbose=&verbose
let old_verbosefile=&verbosefile
set all&
let &verbose=old_verbose
let &verbosefile=old_verbosefile
unlet old_verbose
unlet old_verbosefile

call pathogen#helptags()
call pathogen#runtime_append_all_bundles()

source ~/.vim/settings.vim
source ~/.vim/plugin-settings.vim
source ~/.vim/language-settings.vim
source ~/.vim/helper-functions.vim
source ~/.vim/mappings.vim
source ~/.vim/autocommands.vim

" Define a highlight group for things that annoy me
highlight Annoyance ctermbg=236
" I hate end of line whitespace...highlight it
match Annoyance /\s\+$/

" up arrow (↑)
digraph -^ 8593
" combining acute accent
digraph '' 769

try
  source ~/.vim/local.vim
catch /Vim\%((\a\+)\)\=:E484/ " catch 'could not find local.vim'
  " ignore it
endtry