From 6c2990e3850f34b7d7d849298dd812f1a3efe076 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 2 May 2019 01:49:26 -0400 Subject: [PATCH] Added edit-command-line functions. --- zsh/modules/keybinds/init.zsh | 4 ++++ zsh/zprofile | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/zsh/modules/keybinds/init.zsh b/zsh/modules/keybinds/init.zsh index 45940fd..3073828 100644 --- a/zsh/modules/keybinds/init.zsh +++ b/zsh/modules/keybinds/init.zsh @@ -1,2 +1,6 @@ # CTRL+space to accept Autosuggest's suggestion. bindkey '^ ' autosuggest-accept + +# Open command in $EDITOR +bindkey '^E' edit-command-line +bindkey -M vicmd "v" edit-command-line diff --git a/zsh/zprofile b/zsh/zprofile index 0dc52be..19521cc 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -1,3 +1,6 @@ # vim: syn=zsh -env_loader zprofile \ No newline at end of file +autoload -Uz edit-command-line +zle -n edit-command-line + +env_loader zprofile