more accuratly get cursor from vim