I condensed the logic a bit in d048877f8cb. It's probably a micro-optimization that will expand out again if we add heuristics for "vim-" prefix / ".vim" suffix, but whatever.