Vim: Refactor RunTestFile

Move vim test runner commands to a dictionary, which gets rid of brittle
if/elseif statement.