
Untitled
By: a guest on Jan 28th, 2012 | syntax:
None | size: 0.52 KB | hits: 14 | expires: Never
bindkey -e
bindkey ";5D" backward-word
bindkey ";5C" forward-word
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "\e[3~" delete-char
# /foo/bar/^W -> /foo/
WORDCHARS="${WORDCHARS:s#/#}"
# Better history management (acts like vim)
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "\e[A" history-beginning-search-backward-end
bindkey "\e[B" history-beginning-search-forward-end