Move from Word to Word in iTerm
I have been using iTerm for all my Mac OS X CLI kung-fu. One thing that annoys me is not being able to move from word to word. But that is easy enough to remedy. (These steps are based on version 0.9.5.0516.)
- Go to Bookmarks > Manage Profiles.
- Expand Keyboard Profiles and click Global.
- Click the + (Add Mapping) button.
- Choose cursor left from the Key drop down menu.
- Select the Option Modifier checkbox.
- Choose send escape sequence from the Action drop down menu.
- Enter b and click OK. You can now use Option-Left Arrow to move left/backward from word to word.
- Click the + (Add Mapping) button again.
- Choose cursor right from the Key drop down menu.
- Select the Option Modifier checkbox.
- Choose send escape sequence from the Action drop down menu.
- Enter f and click OK. You can now use Option-Right Arrow to move right/forward from word to word.
That’s it! Thanks go to Kumar McMillan for originally posting this on the TextMate blog.
