Permalink
Browse files

cleaner version of keys.zsh

  • Loading branch information...
1 parent b899058 commit d5df2a82a6e915c4f85c2360b400accec752a917 @graysky2 committed Jan 5, 2013
Showing with 3 additions and 7 deletions.
  1. +3 −7 dotfiles/shell/.zsh/lib/keys.zsh
@@ -1,8 +1,4 @@
-bindkey -v # set vim bindings
-# http://zshwiki.org/home/zle/bindkeys
-
-bindkey "^[[A" history-beginning-search-backward
-bindkey "^[[B" history-beginning-search-forward
+bindkey -v # set vim bindings http://zshwiki.org/home/zle/bindkeys
typeset -A key
@@ -23,8 +19,8 @@ key[Enter]=${terminfo[kent]}
[[ -n "${key[End]}" ]] && bindkey "${key[End]}" end-of-line
[[ -n "${key[Insert]}" ]] && bindkey "${key[Insert]}" overwrite-mode
[[ -n "${key[Delete]}" ]] && bindkey "${key[Delete]}" delete-char
-#[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" up-line-or-beginning-search
-#[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-beginning-search
+[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" history-beginning-search-backward
+[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" history-beginning-search-forward
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
[[ -n "${key[Enter]}" ]] && bindkey "${key[Enter]}" enter

0 comments on commit d5df2a8

Please sign in to comment.