On The Origin of Species by Charles Darwin Chapter 7 Page 103

It is, however, probable, from reasons which I have assigned in my memoir, that this will have occurred only with plants which had already acquired the power of revolving, and had thus become twiners.

I have already endeavoured to explain how plants became twiners, namely, by the increase of a tendency to slight and irregular revolving movements, which were at first of no use to them; this movement, as well as that due to a touch or shake, being the incidental result of the power of moving, gained for other and beneficial purposes. Whether, during the gradual development of climbing plants, natural selection has been aided by the inherited effects of use, I will not pretend to decide; but we know that certain periodical movements, for instance the so-called sleep of plants, are governed by habit.