Is there a way to make bash use visual selections for text replacement?
Standard text input conventions don't work:
Vi mode (set -o vi) visual selection conventions don't work:
this guy did it for zsh:
I've made a VI VISUAL Mode for !ZSH. Emulates !VIM 's visual mode "v" in the cmd-line. http://bazaar.launchpad.net/~raybuntu/%2Bjunk/ZSH_stuff/annotate/head%3A/zle_vi_visual.zsh
it's awesome!
When I want to do this in ZSH I use edit-command-line
. You can add the following into your .zshrc
:
autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
Then I can just type v
in command mode and it will open up my $EDITOR
. You can do the same thing in Bash by just typing v
in command mode without any customization.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With