If you set EDITOR
variable, in bash you can press Ctrl-x ctrl-e
to edit your current command line in your EDITOR
e.g. vim
EDIT
the ctrl-x ctrl-e
is for emacs mode commandline editing, which is the default one. If you have already set it to vi mode, you could do what you have said, pressing the v
. If you want to open the cmd line in vim, you have to set the EDITOR
variable (in your .bashrc for example)
Personally I edit command line in emacs mode, even though vim is my main (and only) editor.