trying to make vim functions