Skip to content

Instantly share code, notes, and snippets.

@seachai
Last active May 15, 2024 16:09
Show Gist options
  • Save seachai/948ed1eeafa32ce03db6685edb879f71 to your computer and use it in GitHub Desktop.
Save seachai/948ed1eeafa32ce03db6685edb879f71 to your computer and use it in GitHub Desktop.
iTerm 2 Natural Text Editing Preset
On iTerm2 - Open Preferences > Profiles > Keys > Key Mappings > Presets > Select Natural Text Editing
- 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 + →.
- Also you can delete a word backwards using Option ⌥ + ⌫, delete the whole line using Command ⌘ + ⌫.
If the preset doesn't appear, reinstall iTerm2. If you installed it using Homebrew + Cask:
brew cask reinstall iterm2
@MohammedAlJaff
Copy link

Thank you tons

@ziyadsfaxi
Copy link

Thanks 🚀

@WolfEYc
Copy link

WolfEYc commented Apr 14, 2024

I found a way around this.
Not using macOS

@foxmean
Copy link

foxmean commented May 15, 2024

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment