misc/vim: make private functions local to the script