Mission 03 / 52• Basic Vim
Moving by Words
Stepping one character at a time with h and l works, but real text is made of words. Vim lets you hop between them in a single keystroke.
The word motions
- wjump to the start of the next word
- ejump to the end of the current or next word
- bjump back to the start of the previous word
When you run off the end of a line, these motions continue onto the next line automatically.
Press Enter to start
1const greeting = buildGreeting(name);2function buildGreeting(name) {3 return "Hello, " + name + "!";4}Try it above: press w repeatedly to skip across the line, then b to walk back. Use e when you want to land on the last character of a word — handy before appending.
Now it's your turn!
0 / 4 tasks complete0.0s / 13s par0 / 7 par
Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.
Task 1: Jump to the end of second with word motion e.
Show hint
Press e.
Press Enter to start
1first second thirdjkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next