I've just pushed a commit in dotfiles[1] repository with this and adding: restore previous keymap and a clean up. [1]: https://raw.githubusercontent.com/tokiclover/dotfiles/master/.zsh/lib/bracketed-paste.zsh