updates to vim function