re-added vim function pattern for tests