This plugin adds 2 keybindings to do global search and replace on current command line. Try it out with Ctrl-F Ctrl-P.
bindkey -M viins '^F^P' basicSedSub
bindkey -M vicmd '^F^P' basicSedSub
~/.zshrc
source "$HOME/.zinit/bin/zinit.zsh"
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-sed-sub
cd "$HOME/.oh-my-zsh/custom/plugins" && git clone https://github.com/MenkeTechnologies/zsh-sed-sub.git
Add zsh-sed-sub
to plugins array in ~/.zshrc
git clone https://github.com/MenkeTechnologies/zsh-sed-sub.git
source zsh-sed-sub.plugin.zsh or add code to zshrc or any startup script