Moving word by word in iTerm
Many times I find myself wanting to quickly jump around to different positions in a command in iTerm. In a text editor it’s simple, OPTION + arrowKey
moves one word at the time, CMD + arrowKey
moves to the beginning/end of a line. But in iTerm this doesn’t work by default. But I found out there’s a way around it.
This is how you make it work:
1. In iTerm press CMD + ,
to open the Preferences
2. Go to Profiles > Keys > Key Mappings
3. In the presets at the bottom, select Natural Text Editing
4. Done.
This makes navigating around long commands in iTerm a bit easier to deal with.