sed: -E -> -r as -E is undocumented and not available in all version of sed (e.g. GNU sed version 4.1.5)
vimrc: use clearmatches only if available