diff --git a/plugins/reverse-word-delete/reverse-word-delete.plugin.zsh b/plugins/reverse-word-delete/reverse-word-delete.plugin.zsh new file mode 100644 index 00000000..3600d613 --- /dev/null +++ b/plugins/reverse-word-delete/reverse-word-delete.plugin.zsh @@ -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