I have been using
sudo find / -iname '*foo*' 2>/dev/null | vim
to get a list of directories/files containing
foo, and then I inspect this list, edit it, and write a bunch of new commands inside of vim.
After writing my commands inside of vim, I copy what I have written and quit vim then I paste it into the new command line.
Vim is my C-x C-e command line editor.
Can I make it so that
:wq from inside of this vim session automatically fills the command line with the buffer?
As it would had I started vim with C-x C-e instead of
How can I start a C-x C-e vim session with piped input?