coliter function for vim