Kill/Yank (cut/paste) in ZSH
A simple "\C-w": kill-region
in my .inputrc
file binds the key to the function I want.
Update: Spoke too soon. The above only does it for applications that use the readline libraries. Zsh uses its own zle
. The way to configure similar behaviour is to stick bindkey "\C-w" kill-region
into your .zshrc