Go to content Go to navigation Go to search

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.)

  1. Go to Bookmarks > Manage Profiles.
  2. Expand Keyboard Profiles and click Global.
  3. Click the + (Add Mapping) button.
  4. Choose cursor left from the Key drop down menu.
  5. Select the Option Modifier checkbox.
  6. Choose send escape sequence from the Action drop down menu.
  7. Enter b and click OK. You can now use Option-Left Arrow to move left/backward from word to word.
  8. Click the + (Add Mapping) button again.
  9. Choose cursor right from the Key drop down menu.
  10. Select the Option Modifier checkbox.
  11. Choose send escape sequence from the Action drop down menu.
  12. 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.