Fix vi-mode grips

Tips from [zsh-vimto](https://github.com/laurenkt/zsh-vimto).

* Remove delay when changing mode
* Enable backspace when returning to viins from vicmd mode
This commit is contained in:
2018-08-30 22:44:22 +01:00
parent 2ac97afdd1
commit 585925df38
2 changed files with 6 additions and 0 deletions

3
zshrc
View File

@@ -86,6 +86,9 @@ prompt fresh
# Enable vi mode line editor keymap
bindkey -v
# Enable backspace after returning to viins from vicmd mode
bindkey '^?' backward-delete-char
# Enable yank, change, and delete whole line with 'Y', 'cc', and 'dd'
bindkey -M vicmd 'Y' vi-yank-whole-line