diff options
Diffstat (limited to '98-bindkeys.zsh')
-rw-r--r-- | 98-bindkeys.zsh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/98-bindkeys.zsh b/98-bindkeys.zsh index a68502d..6ff8c63 100644 --- a/98-bindkeys.zsh +++ b/98-bindkeys.zsh @@ -86,6 +86,15 @@ nvim-complete-lst() { compadd "good" "day" "sir" } +nvim-viins-ctrl-w() { + if [[ "$BUFFER" == "" ]] ; then + zle vi-cmd-mode + nvim-move-pane + else + zle vi-backward-kill-word + fi +} + zle -C nvim-complete menu-select nvim-complete-lst zle -N nvim-move-pane @@ -93,10 +102,12 @@ zle -N nvim-cmd-mode zle -N expand-last-file zle -N select-nvim-reg zle -N put-after-reg-override +zle -N nvim-viins-ctrl-w bindkey -M vicmd '' nvim-move-pane bindkey -M vicmd ':' nvim-cmd-mode bindkey -M viins '' expand-last-file +bindkey -M viins '' nvim-viins-ctrl-w # Allow selecting and pasting registers from neovim using @<reg>p bindkey -M vicmd '@' select-nvim-reg |