Use bindkey instead of set -o
Using `bindkey` is the preferred zsh way to do it. As far as I checked, also `set -o emacs` defines a less complete set of key bindings compared to `bindkey -e`.
This commit is contained in:
parent
acdb1d4bc7
commit
e29c4e9cde
1 changed files with 3 additions and 3 deletions
6
init.zsh
6
init.zsh
|
@ -14,10 +14,10 @@ fi
|
|||
[[ -s ${ZDOTDIR:-${HOME}}/.zimrc ]] && source ${ZDOTDIR:-${HOME}}/.zimrc
|
||||
|
||||
# Set input mode before loading modules
|
||||
if [ ${zinput_mode}='vi' ]; then
|
||||
set -o vi
|
||||
if [[ ${zinput_mode} == 'vi' ]]; then
|
||||
bindkey -v
|
||||
else
|
||||
set -o emacs
|
||||
bindkey -e
|
||||
fi
|
||||
|
||||
# Autoload module functions
|
||||
|
|
Loading…
Reference in a new issue