Created
February 19, 2019 09:09
-
-
Save cre-o/dc22c4409bac8326c9f9701abfa29522 to your computer and use it in GitHub Desktop.
Iterm2 default keybindings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To jump between words and start/end of lines in iTerm2 follow these steps: | |
iTerm2 -> Preferences (⌘ + ,) | |
Open the “Keys” tab | |
Add the following Global Shortcut Keys | |
Move cursor one word left | |
Keyboard Combination: ⌥ + ← | |
Action: Send Hex Code | |
Code: 0x1b 0x62 | |
Move cursor one word right | |
Keyboard Combination: ⌥ + → | |
Action: Send Hex Code | |
Code: 0x1b 0x66 | |
Move cursor to beginning of line | |
Keyboard Combination: ⌘ + ← | |
Action: Send Hex Code | |
Code: 0x01 | |
Move cursor to end of line | |
Keyboard Combination: ⌘ + → | |
Action: Send Hex Code | |
Code: 0x05 | |
Delete word | |
Keyboard Combination: ⌥ + ←Delete | |
Action: Send Hex Code | |
Code: 0x1b 0x08 | |
Delete line | |
Keyboard Combination: ⌘ + ←Delete | |
Action: Send Hex Code | |
Code: 0x15 | |
Undo | |
Keyboard Combination: ⌘ + z | |
Action: Send Hex Code | |
Code: 0x1f | |
Don't forget to remove the previous bindings: | |
Open the “Profiles” tab | |
Click the sub-tab ”Keys” | |
Remove the mappings for key combinations ⌥ + ← and ⌥ + → | |
creds: https://stackoverflow.com/users/434980/sqren |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment