Skip to content

Instantly share code, notes, and snippets.

@drobakowski
Forked from jimmyhillis/keybindings.md
Last active March 2, 2017 17:09
Show Gist options
  • Save drobakowski/e495945009ceb000316394ab4cfdb62d to your computer and use it in GitHub Desktop.
Save drobakowski/e495945009ceb000316394ab4cfdb62d to your computer and use it in GitHub Desktop.
iTerm 2 Mac-ready key binding additions.

Standard bindings

Action Keys Send Escape Sequence
Move left between words + b
Move right between words + f
Start of the line + [H
End of the line + [F
Delete previous word +delete 0x17
Delete one word to right of the cursor fn++delete 0x01b 0x64
Delete entire line +delete 0x15
Delete all characters right of the cursor fn++delete 0x0b

Don't forget the amazing icons = command and = options/alt (why oh why?).

ZLE bindings

Oh-my-zsh have made some changes to use ZLE which you can see talked about issue and commit so there are different bindings for that.

Action Keys Send Escape Sequence
Start of the line + OH
End of the line + OF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment