"Suppose you typed a longer command and you noticed that you had made several mistakes, and wanted to do the correction in the vi editor itself. You can type 'v' to edit the command in the editor and not on the command line!"
But after I edit the command in vim, how do I get that command back to the command line? Or do I have to copy / paste manually?
Tim, I mean I'm on the linux command line in set -o vi mode.
You can do basic editing there, but anything more complex you can type 'v' and it will open the current command line text in $EDITOR. I'm wondering how to send the edited command back to the LINUX command line (not inside of vim)
It should. Have you got any of VISUAL, EDITOR or FCEDIT set? (A pitfall is to set one of these to just "gvim", which won't work, "gvim -f" is needed.) Is TMPDIR set?
Does vim open in your terminal window? What file is it using? (mine uses /tmp/bash-fc-nnnnnnnnnnn where nnnnnnnnnnn appears to be generated randomly).
You might try setting EDITOR="vim -u NONE" to eliminate the possibility of a .vimrc or plugin interfering.
Regards, John