From 90c72f9bd79a89a6e4a226a6bf5c7e7227dfffd6 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Tue, 5 Mar 2019 22:53:40 +0100 Subject: [PATCH] add edit-command-line binding --- zsh/.zsh/configs/editor.zsh | 2 ++ zsh/.zsh/configs/keybindings.zsh | 1 + 2 files changed, 3 insertions(+) diff --git a/zsh/.zsh/configs/editor.zsh b/zsh/.zsh/configs/editor.zsh index 4d6ef2a..8d0d126 100644 --- a/zsh/.zsh/configs/editor.zsh +++ b/zsh/.zsh/configs/editor.zsh @@ -1,2 +1,4 @@ export VISUAL=vim export EDITOR=$VISUAL + +autoload edit-command-line; zle -N edit-command-line diff --git a/zsh/.zsh/configs/keybindings.zsh b/zsh/.zsh/configs/keybindings.zsh index 4cc00e1..bc542ab 100644 --- a/zsh/.zsh/configs/keybindings.zsh +++ b/zsh/.zsh/configs/keybindings.zsh @@ -3,3 +3,4 @@ stty -ixon # vi mode bindkey -v +bindkey -M vicmd v edit-command-line