Search code examples
vimvi

In Vim/Vi, how do you move the cursor to the end of the previous word?


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?


Solution

  • Unfortunately it's not a single key... but ge is what you're looking for, I think.