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

ClosureCowboy picture ClosureCowboy · Feb 26, 2011 · Viewed 39k times · Source

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?

Answer

jkerian picture jkerian · Feb 26, 2011

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