fixes for vim functions