a38774c98d1c08f82b1325a40b2de1a76586e02a

Author
Christopher Sexton <csexton@gmail.com>
Committer
Christopher Sexton <csexton@gmail.com>
Date

Message

C-x C-e to edit current command in EDITOR

The command C-x C-e opens the current command line for editing
in the editor defined by the $EDITOR environment variable.

Thanks to Craig Bosma and his blog post about this:
http://distrustsimplicity.net/articles/zsh-command-editing

Diff

1diff --git a/lib/edit-command-line.zsh b/lib/edit-command-line.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..db2000325c82691b5eef2b664c27b00caab1ec58
4--- /dev/null
5+++ b/lib/edit-command-line.zsh
6@@ -0,0 +1,3 @@
7+autoload -U edit-command-line
8+zle -N edit-command-line
9+bindkey '\C-x\C-e' edit-command-line