let path = expand('%:p:h') if path =~ "Python-trunk" let path = substitute(path, '\(.*/Python-trunk\).*', '\1', '') execute('source ' . path . '/Misc/Vim/vimrc') endif