zsh:keys: Use vi- variants of navigation binds
They seem to be more consistent in doing the same/reversed thing when triggering them backwards.
This commit is contained in:
@@ -49,21 +49,21 @@ bindkey '^E' edit-command-line
|
|||||||
bindkey '^S' vi-pound-insert
|
bindkey '^S' vi-pound-insert
|
||||||
|
|
||||||
## Navigation
|
## Navigation
|
||||||
bindkey '^[[Z' reverse-menu-complete # shift-tab
|
bindkey '^[[Z' reverse-menu-complete # shift-tab
|
||||||
bindkey '^Q' push-input # ctrl-Q
|
bindkey '^Q' push-input # ctrl-Q
|
||||||
bindkey '^[[H' beginning-of-line # home
|
bindkey '^[[H' vi-beginning-of-line # home
|
||||||
bindkey "$terminfo[khome]" beginning-of-line # home
|
bindkey "$terminfo[khome]" vi-beginning-of-line # home
|
||||||
bindkey '^[[F' end-of-line # end
|
bindkey '^[[F' vi-end-of-line # end
|
||||||
bindkey "$terminfo[kend]" end-of-line # end
|
bindkey "$terminfo[kend]" vi-end-of-line # end
|
||||||
bindkey -v '^?' backward-delete-char # normal delete not vim-bac...
|
bindkey '^?' vi-backward-delete-char # backspace
|
||||||
bindkey '^[[P' delete-char # delete
|
bindkey '^[[P' vi-delete-char # delete
|
||||||
bindkey '^[[3~' delete-char # delete
|
bindkey '^[[3~' vi-delete-char # delete
|
||||||
bindkey '^[[1;5D' backward-word # ctrl-left
|
bindkey '^[[1;5D' vi-backward-word # ctrl-left
|
||||||
bindkey '^[[1;5C' forward-word # ctrl-right
|
bindkey '^[[1;5C' vi-forward-word # ctrl-right
|
||||||
bindkey '^W' backward-kill-word # ctrl-W
|
bindkey '^W' vi-backward-kill-word # ctrl-W
|
||||||
bindkey '^H' backward-kill-word # ctrl-backspace
|
bindkey '^H' vi-backward-kill-word # ctrl-backspace
|
||||||
bindkey '^[[3;5~' kill-word # ctrl-delete
|
bindkey '^[[3;5~' vi-kill-word # ctrl-delete
|
||||||
bindkey "$terminfo[kmous]" kill-word # ctrl-delete
|
bindkey "$terminfo[kmous]" vi-kill-word # ctrl-delete
|
||||||
|
|
||||||
# Open file in EDITOR selected with fzf
|
# Open file in EDITOR selected with fzf
|
||||||
function edit-fuzzy-file {
|
function edit-fuzzy-file {
|
||||||
|
|||||||
Reference in New Issue
Block a user