https://www.iterm2.com/

setup for better use

going one word backwards and forwards

https://apple.stackexchange.com/a/293988

  1. Go to Preferences... > Profiles > Keys
  2. Press Load Preset...
  3. Select Natural Text Editing

Then, you can move a word backwards using Option ⌥ + , and a word forwards using Option ⌥ + .

Also you can delete a word backwards using Option ⌥ + , delete the whole line using Command ⌘ + .