You can also use Esc instead or Ctrl-[, and f to go forward.
I don't know how to improve the situation, but now it's known.)Ĭtrl-[ b jumps back a word. I should have added the extra information in comments or suggested edits on that answer. Then, you can move a word backwards using Option + and a word forwards using Option +, move to the start of the line using fn + and to the end. (I don't remember for sure, but I think I copied this answer from jherran's answer below and added more to it. But, you cannot hold esc to keep moving cursor, instead.
Preferences > Keys (or Preferences > Profiles > Keys)ĭelete to beginning of word (credit) option+delete Save Move the cursor word by word on Mac OS X iTerm2 Mac OS X doesn’t support readline’s alt-b and alt-f.If you installed it using Homebrew+Cask: brew cask reinstall iterm2 If the preset doesn't appear, reinstall iTerm2. In this case, I choose to go with the profile only. Also you can delete a word backwards using Option ⌥ + ⌫, delete the whole line using Command ⌘ + ⌫. Use + and + to delete a word and delete a line respectively Skip word by using + and + Move to the beginning/end of the line using + and + You can either add a global shortcut key or just a local shortcut key for the particular profile. Then, you can move a word backwards using Option ⌥ + ← and a word forwards using Option ⌥ + →, move to the start of the line using fn + ← and to the end of the line with fn + →.