aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zshrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index c5c56a3..1d67e8f 100644
--- a/.zshrc
+++ b/.zshrc
@@ -2,9 +2,13 @@ setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
-
EDITOR=vim
+# Edit command line
+autoload -U edit-command-line
+zle -N edit-command-line
+bindkey '^x^e' edit-command-line
+
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000