From 37b323b50a0e4005ab77a3f3fb71b16dad0ec65e Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Mon, 11 May 2020 20:50:09 +0200 Subject: [PATCH] Add 'open in nvim' binding to zsh --- .config/zsh/.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 0604fb3..4544a2d 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -58,6 +58,11 @@ _comp_options+=(globdots) #~~~~~~~~~~ # Bindings #~~~~~~~~~~ +## edit line in vim with ctrl-e: +autoload edit-command-line; zle -N edit-command-line +bindkey -M vicmd '^e' edit-command-line +bindkey '^e' edit-command-line + # vi mode bindkey -v export KEYTIMEOUT=1