Kill / Yankee (cut / paste) in ZSH

I use zsh and set Emacs bindings for it. I would like him to copy all my regular Emacs text manipulation commands. One of which I missed is the Kill / Yank keys. It would be nice if I could select the text (using C-SPC - this works) and then do something like kill-region ( Cw - this will delete the previous word right now). The Yankees ( Cy ) work fine, and I can even scroll them using My .

Does anyone have such a setting?

+7
command-line linux zsh emacs
source share
1 answer

The simple "\Cw": kill-region in my .inputrc file binds the key to the function I want.


Update: too fast. The above applies only to applications using readline libraries. Zsh uses its own zle . A way to configure similar behavior is to insert the bindkey "\Cw" kill-region in .zshrc

+8
source share

All Articles