WORD Motions

W, B, E, gE โ€” like w/b/e/ge but bigger words.

Keys: W, B, E, gE

Capital-letter word motions treat any non-whitespace character as part of the word. So foo->bar.baz is one WORD, three words.

w skips between keyword runs. W skips between whitespace-separated chunks. The capital is bigger.

Forward to next WORD
KeyNote
W
Back to start of WORD
KeyNote
B
Forward to end of WORD
KeyNote
E
Back to end of previous WORD
KeyNote
g
E
W / B / E / gE โ€” WORD motions

Reference

Key Direction Lands on
W Forward Start of next WORD
B Back Start of previous WORD
E Forward End of WORD
gE Back End of previous WORD

Worked example โ€” W vs w

WORD motions ignore punctuation as separators.

Step 1 ยท Cursor on 'f'.
Cursor on 'f'.
Step 2 ยท w ยท w โ€” stopped at '.'.
w โ€” stopped at '.'.

Lower-case w treats '.' as a word boundary.

Step 3 ยท 0W ยท W โ€” skipped to 'baz'.
W โ€” skipped to 'baz'.

Upper-case W treats whitespace-separated chunks as one WORD.

โ–ถ Try this in the simulator

See also: Word Motions, Inner Word vs A Word