General information
- Terminal program: Ghostty 1.3.1
- Operating system: macOS 26.4.1
- ZSH framework: zsh
- ZSH version: 5.9
- ZVM version: 0.12.0
System report (zvm_system_report)
Basic examination
Problem description
When binding Esc . (or any other key sequence) to the Zsh built-in widget insert-last-word inside zsh-vi-mode, the executed action does not insert the last argument of the previous command. Instead, it inserts unexpected text that appears to be a corrupted repetition of a completion or edit operation (e.g., fragments like ls .con//gls). This indicates the insert-last-word widget is not working properly under zsh-vi-mode.
Reproduction steps
- Load
zsh-vi-mode and configure the key binding in ~/.zshrc (after plugin load):
function zvm_after_init() {
zvm_bindkey viins '^[.' insert-last-word
}
# Set a short timeout to distinguish Esc . from Esc alone
ZVM_KEYTIMEOUT=5
General information
System report (zvm_system_report)
Basic examination
Problem description
When binding
Esc .(or any other key sequence) to the Zsh built-in widgetinsert-last-wordinsidezsh-vi-mode, the executed action does not insert the last argument of the previous command. Instead, it inserts unexpected text that appears to be a corrupted repetition of a completion or edit operation (e.g., fragments likels .con//gls). This indicates theinsert-last-wordwidget is not working properly underzsh-vi-mode.Reproduction steps
zsh-vi-modeand configure the key binding in~/.zshrc(after plugin load):