Word Motions

Move a word at a time. The grammar's first real noun.

Keys: w, b, e, ge

w/b/e/ge move forward and backward by word. They're motions, so they pair with operators: dw deletes a word, cw changes one, yw yanks one.

Moving one character at a time with hjkl is fine for surgery. For everything else you want to move a word at a time. That's what w, b, e, and ge do โ€” and because they're motions, they double as the noun half of every editing command.

Forward to the start of the next word
KeyNote
w
Back to the start of the current/previous word
KeyNote
b
Forward to the end of the current/next word
KeyNote
e
Back to the end of the previous word
KeyNote
g
e
w โ€” next word
b โ€” previous word
e โ€” end of word
ge โ€” back-end

Reference

Key Direction Lands on Counts
w Forward Start of next word Yes
b Back Start of word Yes
e Forward End of word Yes
ge Back End of previous word Yes
WBEgE Same, but WORD-wise (whitespace boundaries) โ€” Yes

Worked example โ€” w b e

Move by word boundary.

Step 1 ยท Cursor on 't' of 'the'.
Cursor on 't' of 'the'.
Step 2 ยท w ยท w โ€” start of next word.
w โ€” start of next word.
Step 3 ยท e ยท e โ€” end of current word.
e โ€” end of current word.
Step 4 ยท b ยท b โ€” back to 'q'.
b โ€” back to 'q'.

w/b move to word boundaries; e moves to the end of a word. With operators: dw, db, de all differ slightly โ€” see grammar.

โ–ถ Try this in the simulator

See also: Delete, Change, WORD Motions, The Universal Grammar