- Go to iTerm Preferences → Profiles
- select your profile
- then the Keys tab with its sub-tab Key Mappings
- Click Load Preset...
- and choose Natural Text Editing
credits: https://apple.stackexchange.com/questions/136928/using-alt-cmd-right-left-arrow-in-iterm