Keyboard shortcut to jump between words in iTerm2 - Upendar Gareri - Medium

Excerpt

I am using zsh with auto suggestion plugin and in my new Mac setup I found that I was only able to complete the entire command using “→”



[

Upendar Gareri

](https://medium.com/@ThisIsUpen?source=post_page-----3c22eb5a25ef--------------------------------)

Photo by John Petalcurin on Unsplash

I am using zsh with auto suggestion plugin and in my new Mac setup I found that I was only able to complete the entire command using “→” arrow key. The feature to only select part of the command or jump only to next/previous word in the command was not set up by default.

A simple trick to solve this is mentioned below -

1. Click on iTerm2 and open “Preferences”

2. Click on “Profiles”

3. Select your profile from the left (in my case “Default”)

4. Click on “Keys” tab

5. Click “Key Mappings” tab

6. Click the “Presets” dropdown and select “Natural Text Editing”

After this pressing the “option/alt” and “→” jumps to the next word of auto-suggestion.

Hope this helps. Cheers!!