bindkey '\ew' kill-region # [Esc-w] - Kill from the cursor to the mark
bindkey -s'\el''ls\n'# [Esc-l] - run command: ls
bindkey -s'\e.''..\n'# [Esc-.] - run command: .. (up directory)
bindkey '^r' history-incremental-search-backward # [Ctrl-r] - Search backward incrementally for a specified string. The string may begin with ^ to anchor the search to the beginning of the line.
bindkey '^[[5~' up-line-or-history # [PageUp] - Up a line of history
bindkey '^[[6~' down-line-or-history # [PageDown] - Down a line of history
bindkey '^[[H' beginning-of-line # [Home] - Go to beginning of line
bindkey '^[[1~' beginning-of-line # [Home] - Go to beginning of line
bindkey '^[OH' beginning-of-line # [Home] - Go to beginning of line
bindkey '^[[F' end-of-line # [End] - Go to end of line
bindkey '^[[4~' end-of-line # [End] - Go to end of line
bindkey '^[OF' end-of-line # [End] - Go to end of line
bindkey ' ' magic-space # [Space] - do history expansion
bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word
bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word
bindkey '^[[Z' reverse-menu-complete # [TODO] - Perform menu completion, like menu-complete, except that if a menu completion is already in progress, move to the previous completion rather than the next.
# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~