Add 'open in nvim' binding to zsh

This commit is contained in:
Wiktor Zykubek 2020-05-11 20:50:09 +02:00
parent 7bfb8deef9
commit 37b323b50a

View File

@ -58,6 +58,11 @@ _comp_options+=(globdots)
#~~~~~~~~~~ #~~~~~~~~~~
# Bindings # 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 # vi mode
bindkey -v bindkey -v
export KEYTIMEOUT=1 export KEYTIMEOUT=1