miscellaneous Vim functions