Reporoot.vim is a project mainly written in Vim Script, it's free.
Change directory to the root of the source code repository
This is a mirror of http://www.vim.org/scripts/script.php?script_id=3487
The reporoot plugin attempts to find the nearest repository root and change the directory to it.