From 04e99fb04e5888bf7af6a3384d420bd35e1bf8a5 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Sat, 14 Jun 2025 17:21:32 -0400 Subject: Add bind to open EDITOR to zsh --- zsh/zshvimodes | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'zsh') diff --git a/zsh/zshvimodes b/zsh/zshvimodes index ab60972..02e9756 100644 --- a/zsh/zshvimodes +++ b/zsh/zshvimodes @@ -21,3 +21,8 @@ function TRAPINT() { vim_mode=$vim_ins_mode return $(( 128 + $1 )) } + +# Use C-e to open editor with current command line +autoload edit-command-line +zle -N edit-command-line +bindkey '^e' edit-command-line -- cgit v1.2.3