News for hackers. Stuff that matters.
Re:A great list of command-line tips by vog on Sunday April 15, 2012 @09:36AM (#3843660)
> Next time you are using your shell, try typing ctrl-x e [...]. The shell will take what you've written on the command line thus far and paste it into the editor specified by $EDITOR.

I'm astonished this works in bash but not in zsh.

Re:A great list of command-line tips by moe on Sunday April 15, 2012 @10:20AM (#3843738)
I have these in my .zshrc:

  autoload edit-command-line
  zle -N edit-command-line
  bindkey '^X^E' edit-command-line
Re:A great list of command-line tips by read_wharf on Sunday April 15, 2012 @09:52AM (#3843680)
And if you use set -o vi in .bashrc, or set editing-mode vi in .inputrc, then 'v' will do the same thing, e.g.

    $ blah blah[ESC]v
puts you in vim with the command line thus far.
Re:A great list of command-line tips by e40 on Sunday April 15, 2012 @10:49AM (#3843787)
I tried "set -o vi" and every v sent me into the editor. This was on the latest cygwin.
Re:A great list of command-line tips by jlebar on Sunday April 15, 2012 @05:12PM (#3844773)
Well, you must have been command mode. Try pressing "i".
Re:A great list of command-line tips by e40 on Sunday April 15, 2012 @10:38AM (#3843764)
ctrl-x ctrl-e ... the e isn't naked as you suggested.