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:
- In iTerm press
CMD + ,to open the Preferences
- Go to Profiles > Keys > Key Mappings
- In the presets at the bottom, select
Natural Text Editing
This makes navigating around long commands in iTerm a bit easier to deal with.