From 57149a671eee4fdba7ba2d30da334f4ab93540f5 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 2 Nov 2019 22:52:08 +0200 Subject: [PATCH] Added editor keybind Signed-off-by: Marko Korhonen --- home/.config/zsh/04-keybinds.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.config/zsh/04-keybinds.zsh b/home/.config/zsh/04-keybinds.zsh index 8f205d2..83310a9 100644 --- a/home/.config/zsh/04-keybinds.zsh +++ b/home/.config/zsh/04-keybinds.zsh @@ -37,3 +37,7 @@ if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then zle -N zle-line-init zle -N zle-line-finish fi + +# use e to open command in editor +autoload edit-command-line; zle -N edit-command-line +bindkey -M vicmd e edit-command-line