What steps put my bash prompt commands into vim and then back again to bash to execute?

Posted by xtian on Super User See other posts from Super User or by xtian
Published on 2012-07-10T23:36:03Z Indexed on 2012/07/11 15:18 UTC
Read the original article Hit count: 364

Filed under:
|

I've enabled VIM style editing of bash commands at the bash prompt as default bash setting. On a few occasions I've accidentally opened a blank vim file with some complex bash command I was writing.

Awesome. How do I get the newly written line in vim back into bash? I found another post where the author had the opposite trouble--or so it seems.

What steps put my bash prompt commands into vim and then back again to bash to execute?

© Super User or respective owner

Related posts about bash

Related posts about vim