Browse files

Fix edit-command-line binding

This binding doesn't work when the edit-command-line.zsh file is loaded
after the key-bindings.zsh file because 'bindkey -e' in key-bindings.zsh
resets the binding. Moving the bindings to they key-bindings.zsh file
and removing edit-command-line.zsh.
  • Loading branch information...
Randy Hancock
Randy Hancock committed Aug 1, 2011
1 parent dee8171 commit f20cfc68e81be754521672541fd6ff25983f402c
Showing with 5 additions and 3 deletions.
  1. +0 −3 lib/edit-command-line.zsh
  2. +5 −0 lib/key-bindings.zsh
@@ -1,3 +0,0 @@
-autoload -U edit-command-line
-zle -N edit-command-line
-bindkey '\C-x\C-e' edit-command-line
@@ -26,6 +26,11 @@ bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
bindkey "\e[3~" delete-char
+# Edit the current command line in $EDITOR
+autoload -U edit-command-line
+zle -N edit-command-line
+bindkey '\C-x\C-e' edit-command-line
# consider emacs keybindings:
#bindkey -e ## emacs key bindings

0 comments on commit f20cfc6

Please sign in to comment.