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:
parent
b85d474f6e
commit
107b668e3a
1 changed files with 7 additions and 0 deletions
|
|
@ -94,6 +94,13 @@ in
|
||||||
# Better word movement in insert mode
|
# Better word movement in insert mode
|
||||||
bindkey '^[[1;5C' forward-word # Ctrl+Right
|
bindkey '^[[1;5C' forward-word # Ctrl+Right
|
||||||
bindkey '^[[1;5D' backward-word # Ctrl+Left
|
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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue