From fab68e282cf4f3c3b797a676cacaa32502d99691 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Thu, 31 Jan 2013 13:23:07 +0100 Subject: [PATCH] zsh: bindkey to edit command line in vim --- zsh/zshrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 1e0cf25..5957ee1 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -8,6 +8,9 @@ bashcompinit autoload -Uz vcs_info +autoload -z edit-command-line +zle -N edit-command-line + #-----------------# # Auto-completion # #-----------------# @@ -69,6 +72,7 @@ setopt prompt_subst # VIM mode # #----------# bindkey -v +bindkey -M vicmd v edit-command-line # Affiche le mode (normal ou insert) dans le prompt de droite function zle-line-init zle-keymap-select