Revert to emacs mode, just change ^w to vi-backward-kill-word.
This commit is contained in:
4
.zshrc
4
.zshrc
@@ -58,7 +58,7 @@ precmd() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
#
|
#
|
||||||
bindkey -v
|
bindkey -e
|
||||||
typeset -A key
|
typeset -A key
|
||||||
key[Delete]=${terminfo[kdch1]}
|
key[Delete]=${terminfo[kdch1]}
|
||||||
key[Down]=${terminfo[kcud1]}
|
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[Up]}" history-beginning-search-backward-end
|
||||||
bindkey "${key[Down]}" history-beginning-search-forward-end
|
bindkey "${key[Down]}" history-beginning-search-forward-end
|
||||||
#
|
#
|
||||||
|
bindkey '^w' vi-backward-kill-word
|
||||||
|
#
|
||||||
if [[ "`uname -s`" == "FreeBSD" || "`uname -s`" == "Darwin" ]]; then
|
if [[ "`uname -s`" == "FreeBSD" || "`uname -s`" == "Darwin" ]]; then
|
||||||
alias "ls=/bin/ls -aFG"
|
alias "ls=/bin/ls -aFG"
|
||||||
alias "w=/usr/bin/w -i"
|
alias "w=/usr/bin/w -i"
|
||||||
|
|||||||
Reference in New Issue
Block a user