Added check for older vim (undo command)