fix vi mode escape issue in zsh

This commit is contained in:
Thomas Ruoff
2015-09-27 23:18:54 +02:00
committed by Thomas Ruoff
parent cc6d308a13
commit 372eec7381
2 changed files with 7 additions and 3 deletions

7
zshrc
View File

@@ -47,6 +47,13 @@ alias ls='ls --color=tty'
# keybindings
bindkey -v
export KEYTIMEOUT=1
# prevent 2*ESC-i insert-mode switch failure
noop () { }
zle -N noop
bindkey -M vicmd '\e' noop
bindkey '^P' up-history
bindkey '^N' down-history