If you're using iTerm2 3.5+ and ever wondered how to make navigating in text like in a text editor, then I have good
news for you, because it's possible to do so. Just go into settings by pressing CMD + ., then follow the instructions in
the screenshot below:

After applying these changes, you can freely navigate like in a text editor, using Option + ← or Option + →