How can I get control+left arrow to go back one word in iTerm2?
Problem
I was reading up in the Linux manual and I noticed that it said I could use control+left and control+right to move forward and back words in the terminal while editing. "Pressing Ctrl plus the Left or Right arrow key moves backward or forward a word at a time, as does pressing Esc and then B or F." On OS X and normally control spaces. I have disabled those. I also tried to use the preferences pane to set the keyboard shortcuts: However this does not work and causes this error: Also, if I am in iTerm and use then B or F the character moves back and forth. This was happening before any of my config changes. But I'd really like to be able to use control + the arrow keys.
Error Output
control+left
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How can I get control+left arrow to go back one word in iTerm2?
bash Just add the following to : See this archived Wiki post for some more explanation. If you want to use the alt key instead for word-to-word movement (like default OS X behavior), use: zsh zsh by default does not use the library and therefore won't read . To get the same functionality, you could add the following to your to use ctrl: To use the alt key: See this documentation for more about the built-in zsh line editor (zle). Why is this? You've set up your profile to use the Xterm defaults:…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix