Reputation: 21521
In Vim's normal mode:
How do you move the cursor to the end of the previous word?
Upvotes: 231
Views: 59047
Reputation: 1031
You may also want to do these to go to the space preceding a word (one character after ge: (both are only 2 keys)
The exception is when you are at the beginning of a line, in which case
Upvotes: 5
Reputation: 1994
as seen on VIM manual (section 03.1), you can use ge to go to the end of previous word
Upvotes: 36
Reputation: 1037
Try ge:
ge Backward to the end of word [count] |inclusive|.
*gE*
gE Backward to the end of WORD [count] |inclusive|.
Upvotes: 64
Reputation: 17016
Unfortunately it's not a single key... but ge is what you're looking for, I think.
Upvotes: 318