vim cleanup, functions for various things