Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit f20cfc68e81be754521672541fd6ff25983f402c 1 parent dee8171
authored August 01, 2011
3  lib/edit-command-line.zsh
... ...
@@ -1,3 +0,0 @@
1  
-autoload -U edit-command-line
2  
-zle -N edit-command-line
3  
-bindkey '\C-x\C-e' edit-command-line
5  lib/key-bindings.zsh
@@ -26,6 +26,11 @@ bindkey "^[[3~" delete-char
26 26
 bindkey "^[3;5~" delete-char
27 27
 bindkey "\e[3~" delete-char
28 28
 
  29
+# Edit the current command line in $EDITOR
  30
+autoload -U edit-command-line
  31
+zle -N edit-command-line
  32
+bindkey '\C-x\C-e' edit-command-line
  33
+
29 34
 # consider emacs keybindings:
30 35
 
31 36
 #bindkey -e  ## emacs key bindings

0 notes on commit f20cfc6

Please sign in to comment.
Something went wrong with that request. Please try again.