Fix zsh vim mode backspace and Shift+A autocomplete issues

- Add explicit backspace bindings for ^? and ^H to fix backspace in vim insert mode
- Add Shift+A binding to vi-add-eol to prevent autocomplete interference and enable proper vim append-insert behavior
- These fixes ensure backspace works properly and Shift+A functions as vim append-insert instead of triggering autocompletion

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-29 23:54:44 +02:00
parent b85d474f6e
commit 107b668e3a

View file

@ -94,6 +94,13 @@ in
# Better word movement in insert mode
bindkey '^[[1;5C' forward-word # Ctrl+Right
bindkey '^[[1;5D' backward-word # Ctrl+Left
# Fix backspace in vim insert mode
bindkey '^?' backward-delete-char # Backspace
bindkey '^H' backward-delete-char # Ctrl+H (alternative backspace)
# Prevent Shift+A from triggering autocomplete in vim insert mode
bindkey -M viins '^[[1;2A' vi-add-eol
'';
};