oh-my-zsh/plugins/reverse-word-delete/reverse-word-delete.plugin.zsh

8 lines
176 B
Bash
Raw Normal View History

reverse-word-delete() {
RBUFFER=$(echo "$RBUFFER" | sed -e "s/^\W*\w*//")
}
zle -N reverse-word-delete
# Defined shortcut keys: [Esc] [Esc]
bindkey '3~' reverse-word-delete