more compatible test for older vim version.