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