In Vim's normal mode:
- e goes to the end of the next word
- w goes to the beginning of the next word
- b goes to the beginning of the previous word
How do you move the cursor to the end of the previous word?
In Vim's normal mode:
How do you move the cursor to the end of the previous word?
Unfortunately it's not a single key... but ge is what you're looking for, I think.
ge
and be
, it's that you can be in the middle of the word and you'll go to the end of the previous, while be
you need to be on the first char of the initial word.
– TankorSmash
Dec 4 '13 at 4:06
w
. am I missing something? (I know it can be mapped, just curious why)
– Iman Akbari
Apr 19 '17 at 8:08
be
is convenient, it's a combination of two commands, so you can't use it like: d
be
. Whereas d
ge
does work
– Daniel Thompson
Mar 15 '18 at 8:43
Try ge:
ge Backward to the end of word [count] |inclusive|.
*gE*
gE Backward to the end of WORD [count] |inclusive|.
word
and WORD
: stackoverflow.com/questions/22931032/vim-word-vs-word
– Kenneth Sundqvist
Jan 15 '15 at 7:56
as seen on VIM manual (section 03.1), you can use ge to go to the end of previous word