key-bindings.zsh 931 B

12345678910111213141516171819202122232425262728293031323334
  1. # TODO: Explain what some of this does..
  2. autoload -U compinit
  3. compinit
  4. bindkey '\ew' kill-region
  5. bindkey -s '\el' "ls\n"
  6. bindkey -s '\e.' "..\n"
  7. bindkey '^r' history-incremental-search-backward
  8. bindkey "^[[5~" up-line-or-history
  9. bindkey "^[[6~" down-line-or-history
  10. bindkey "^[[H" beginning-of-line
  11. bindkey "^[[1~" beginning-of-line
  12. bindkey "^[[F" end-of-line
  13. bindkey "^[[4~" end-of-line
  14. bindkey ' ' magic-space # also do history expansion on space
  15. # consider emacs keybindings:
  16. #bindkey -e ## emacs key bindings
  17. #
  18. #bindkey '^[[A' up-line-or-search
  19. #bindkey '^[[B' down-line-or-search
  20. #bindkey '^[^[[C' emacs-forward-word
  21. #bindkey '^[^[[D' emacs-backward-word
  22. #
  23. #bindkey -s '^X^Z' '%-^M'
  24. #bindkey '^[e' expand-cmd-path
  25. #bindkey '^[^I' reverse-menu-complete
  26. #bindkey '^X^N' accept-and-infer-next-history
  27. #bindkey '^W' kill-region
  28. #bindkey '^I' complete-word
  29. ## Fix weird sequence that rxvt produces
  30. #bindkey -s '^[[Z' '\t'
  31. #