From 040ca220951403c9d0ea87ee1523b10f88a909d7 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Thu, 5 Oct 2017 04:59:06 -0300 Subject: [PATCH] Unbreak vi's visual mode Vi (and zsh's vi mode) a few modes, one of them being visual mode, which is triggered by pressing "v". Entering it using "v" is the default on vi/vim/nvim, and also on zsh when using `bindkey -v`. However, the vi-mode plugin overrides this with a custom action, effectively making this mode inaccessible and breaking vi mode. This PR undoes that, since it seems to be a huge oversight when mapping that particular key, and makes vi's visual mode accessible when using the vi-mode plugin. --- plugins/vi-mode/vi-mode.plugin.zsh | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index 82a2f304..a17a07b7 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -17,7 +17,6 @@ bindkey -v # allow v to edit the command line (standard behaviour) autoload -Uz edit-command-line -bindkey -M vicmd 'v' edit-command-line # allow ctrl-p, ctrl-n for navigate history (standard behaviour) bindkey '^P' up-history