Let's say I'm editing this line of JavaScript in Vim:
var opener = 'As Gregor Samsa awoke one morning from uneasy dreams he found himself transformed in his bed into a gigantic insect';
If my cursor is on the G
in Gregor
, how do I move it to the t
in insect
?
I'm not talking about moving to the end of the line. I'm talking about moving to the end of the JavaScript string encapsulated in the single quotation marks. (I know I can do it with /'h
, but I'm wondering if there's a more generic command—maybe something like %
.)