improve vi keybindings in zsh

This commit is contained in:
Thomas Ruoff
2017-06-01 08:43:36 +02:00
parent 0af9fa790e
commit 993c418783

10
zshrc
View File

@@ -25,6 +25,15 @@ setopt auto_cd
setopt multios
setopt cdablevars
########################
# vi mode
########################
bindkey -v
zle -N edit-command-line
autoload -Uz edit-command-line
bindkey -M vicmd 'v' edit-command-line
########################
# Aliases
########################
@@ -53,7 +62,6 @@ alias ls='ls --color=tty'
# keybindings
bindkey -v
export KEYTIMEOUT=1
# prevent 2*ESC-i insert-mode switch failure