Using Alt/Cmd + Right/Left Arrow in iTerm

itermsoftwareterminal

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ?
Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.

Best Answer

Go to iTerm Preferences → Profiles, select your profile, then the Keys tab. Click Load Preset... and choose Natural Text Editing.