Added plugin to delete a word forward like Alt+Backspace Reverse

This commit is contained in:
Vitor Rocha 2016-03-01 11:20:24 -03:00 committed by Vitor Rocha
parent 85401d4811
commit 072e00a842

View File

@ -0,0 +1,7 @@
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