From 8a45937f0f00cc4e611c89b146e545cba6e7791c Mon Sep 17 00:00:00 2001 From: Joseph Tannhuber Date: Wed, 28 May 2014 15:18:45 +0200 Subject: [PATCH] New variable: editor_info[vimode] in order to have current vi-modes (normal, insert, replace) in one variable. --- modules/editor/init.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/editor/init.zsh b/modules/editor/init.zsh index 9a347a09..3edbe21c 100644 --- a/modules/editor/init.zsh +++ b/modules/editor/init.zsh @@ -87,16 +87,20 @@ function editor-info { if [[ "$KEYMAP" == 'vicmd' ]]; then zstyle -s ':prezto:module:editor:info:keymap:alternate' format 'REPLY' editor_info[keymap]="$REPLY" + editor_info[vimode]="$REPLY" else zstyle -s ':prezto:module:editor:info:keymap:primary' format 'REPLY' editor_info[keymap]="$REPLY" + editor_info[vimode]="$REPLY" if [[ "$ZLE_STATE" == *overwrite* ]]; then zstyle -s ':prezto:module:editor:info:keymap:primary:overwrite' format 'REPLY' editor_info[overwrite]="$REPLY" + editor_info[vimode]="$REPLY" else zstyle -s ':prezto:module:editor:info:keymap:primary:insert' format 'REPLY' editor_info[overwrite]="$REPLY" + editor_info[vimode]="$REPLY" fi fi