add compatibility for older vim