DRY up matching in vim

Thanks @robmiller