[vim] Implement gstar and ghash