fixed some keybinding stuff with the new vi mode plugin
This commit is contained in:
parent
9461e40283
commit
43227c6e64
1 changed files with 14 additions and 1 deletions
15
zsh/zshrc
15
zsh/zshrc
|
@ -16,12 +16,25 @@ setopt rmstarsilent
|
|||
# load zsh plugins
|
||||
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
|
||||
|
||||
function zvm_after_init() {
|
||||
plug "zap-zsh/fzf"
|
||||
typeset -A key
|
||||
key[Home]=${terminfo[khome]}
|
||||
key[End]=${terminfo[kend]}
|
||||
key[Delete]=${terminfo[kdch1]}
|
||||
zvm_bindkey viins "${key[Home]}" beginning-of-line
|
||||
zvm_bindkey vicmd "${key[Home]}" beginning-of-line
|
||||
zvm_bindkey viins "${key[End]}" end-of-line
|
||||
zvm_bindkey vicmd "${key[End]}" end-of-line
|
||||
zvm_bindkey viins "${key[Delete]}" delete-char
|
||||
zvm_bindkey vicmd "${key[Delete]}" delete-char
|
||||
}
|
||||
|
||||
plug "mafredri/zsh-async"
|
||||
plug "sindresorhus/pure"
|
||||
plug "zsh-users/zsh-autosuggestions"
|
||||
plug "zsh-users/zsh-syntax-highlighting"
|
||||
plug "zpm-zsh/ls"
|
||||
plug "zap-zsh/fzf"
|
||||
plug "fdellwing/zsh-bat"
|
||||
plug "lukechilds/zsh-nvm"
|
||||
plug "jeffreytse/zsh-vi-mode"
|
||||
|
|
Loading…
Reference in a new issue