[vim]: IE8 fixes.
 - avoid array .indexOf - fixes % key and non-pcre searches.
 - avoid array .map - fixes a couple of non-running tests.