contrib: set nosefailed to false if there was no error
contrib: put most vim functions into a dict