On Mon, 16 Sep 2013 15:51:41 -0700, H. S. Teoh wrote: > On Mon, Sep 16, 2013 at 09:53:34PM +0200, Adam D. Ruppe wrote: >> On Monday, 16 September 2013 at 17:04:46 UTC, H. S. Teoh wrote: >> >It's a miniscule time savings, but it does add up when you're editing >> >a complex command-line pipeline. >> >> You know what would actually be huge for me? The mouse. If you have a >> 200 character command line, just clicking it would be so nice. >> >> I'm sure there's some ctrl+meta+alt that can do it too, but I don't >> know my emacs (and readline's vi mode is weak). > > There's a vi mode to readline?? > > My ideal, actually, would be to liberate the command-line from its > single-line restriction. It would be in insert mode by default, to cater > for the common case, but hitting ESC would put it into navigation mode, > where you can use vi movement keys to navigate. You could construct the > command in a block (almost like a one-off shell script) before > committing and executing it.
Do you know about C-x C-e? If EDITOR is set to "vi" it should open the current command in vi as a temp file, allow you to edit, and when you write and quit it'll execute it. Not sure if this is Bash only or universal.