I'm curious.
I've been using vim for not that long (but long enough that it's now my main editor). What all shortcuts exist for getting to the middle of a line?
I've been using vim for not that long (but long enough that it's now my main editor). What all shortcuts exist for getting to the middle of a line?
Alternatively you can use the search commands, '/' (forward search) or '?' (backwards search) with the text at the middle of the line as your search string.
I would be curious to know if there are other shortcuts for doing this too though.
When I'm editing string parameters of a function I'm calling, I use di' / di" a lot (moves to first ' / ", deletes inside content, and drops to insert mode).
[Edit: here's a nice cheatsheet of them: http://www.digilife.be/quickreferences/qrc/vim%20quick%20ref... ]