Fixes to vim plugin downloads/installation, wait() function fix