Select the vertices, get your move tool, hold down x. The center of the move tool will turn to a small circle indicating snap to grid mode, so moving the vertices will snap them to the line. BTW, this is also good for centering your pivot at the origin. Insert > x snap to origin > Insert