removed unused vimrc code, add global function (getProjectRoot)