Skip to content

Commit

Permalink
lib: remove CTRL-Backspace binding for vi keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella committed Aug 5, 2020
1 parent fa5db34 commit 39c0073
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/key-bindings.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ bindkey -M viins '^?' backward-delete-char
bindkey -M vicmd '^?' backward-delete-char
# [Delete] - delete forward
if [[ -n "${terminfo[kdch1]}" ]]; then
bindkey -M emacs "${terminfo[kdch1]}" delete-char
bindkey -M viins "${terminfo[kdch1]}" delete-char # [Delete] - delete forward
bindkey -M vicmd "${terminfo[kdch1]}" delete-char # [Delete] - delete forward
bindkey -M emacs "${terminfo[kdch1]}" delete-char
bindkey -M viins "${terminfo[kdch1]}" delete-char
bindkey -M vicmd "${terminfo[kdch1]}" delete-char
else
bindkey -M emacs "^[[3~" delete-char
bindkey -M viins "^[[3~" delete-char
Expand All @@ -91,8 +91,6 @@ fi

# [Ctrl-Backspace] - delete whole backward-word
bindkey -M emacs '^H' backward-kill-word
bindkey -M viins '^H' backward-kill-word
bindkey -M vicmd '^H' backward-kill-word
# [Ctrl-Delete] - delete whole forward-word
bindkey -M emacs '^[[3;5~' kill-word
bindkey -M viins '^[[3;5~' kill-word
Expand Down

0 comments on commit 39c0073

Please sign in to comment.