[vim] Fix handling of invalid search regexps.