Revert to emacs mode, just change ^w to vi-backward-kill-word.

This commit is contained in:
Gea-Suan Lin
2015-12-28 09:51:04 +08:00
parent c52c2de56b
commit 0aa48028f8

4
.zshrc
View File

@@ -58,7 +58,7 @@ precmd() {
fi
}
#
bindkey -v
bindkey -e
typeset -A key
key[Delete]=${terminfo[kdch1]}
key[Down]=${terminfo[kcud1]}
@@ -95,6 +95,8 @@ zle -N history-beginning-search-forward-end history-search-end
bindkey "${key[Up]}" history-beginning-search-backward-end
bindkey "${key[Down]}" history-beginning-search-forward-end
#
bindkey '^w' vi-backward-kill-word
#
if [[ "`uname -s`" == "FreeBSD" || "`uname -s`" == "Darwin" ]]; then
alias "ls=/bin/ls -aFG"
alias "w=/usr/bin/w -i"