Ah! You're talking about the "Axis Restriction" button in the toolbar! Now I understand. However, that button doesn't seem to affect the movement of the vertex. I'll paste another example of what I mean:
Any ideas? My goal is to be able to pull the vertex along the z-axis in the 3d view.