vim: allow overriding how newBuffer is created