iTerm2 is a replacement for the default Terminal application on Mac OS. I like to use it for the screen splitting abilities because it’s open source. However, it has an annoying initial state where you can’t use the Option or Alt key as you would in other applications. This means you can’t skip words by pressing alt and the left or right keys.
You can change this behaviour, it just takes a little setup.
Open the Preferences menu: either find it in the “iTerm2” dropdown menu along the top of the screen or press Cmd and comma.
Navigate to the Profiles menu.
Choose the Keys tab.
Within the Key Mappings pane, find the mapping for the alt key plus left. Double click it.
Change the action from “Send Hex Code” to “Send Escape Sequence” (you might have to scroll a bit to find this).
In the “Esc +” field, type lowercase “b”.
For alt plus right, also change the action to “Send Escape Sequence”.
In the “Esc +” field, type lowercase “f”.
And that should be it. Close the menu and start using alt and the left/right arrows to move the cursor over entire words.