|
|
@ -87,16 +87,20 @@ function editor-info {
|
|
|
|
if [[ "$KEYMAP" == 'vicmd' ]]; then
|
|
|
|
if [[ "$KEYMAP" == 'vicmd' ]]; then
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:alternate' format 'REPLY'
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:alternate' format 'REPLY'
|
|
|
|
editor_info[keymap]="$REPLY"
|
|
|
|
editor_info[keymap]="$REPLY"
|
|
|
|
|
|
|
|
editor_info[vimode]="$REPLY"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:primary' format 'REPLY'
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:primary' format 'REPLY'
|
|
|
|
editor_info[keymap]="$REPLY"
|
|
|
|
editor_info[keymap]="$REPLY"
|
|
|
|
|
|
|
|
editor_info[vimode]="$REPLY"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "$ZLE_STATE" == *overwrite* ]]; then
|
|
|
|
if [[ "$ZLE_STATE" == *overwrite* ]]; then
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:primary:overwrite' format 'REPLY'
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:primary:overwrite' format 'REPLY'
|
|
|
|
editor_info[overwrite]="$REPLY"
|
|
|
|
editor_info[overwrite]="$REPLY"
|
|
|
|
|
|
|
|
editor_info[vimode]="$REPLY"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:primary:insert' format 'REPLY'
|
|
|
|
zstyle -s ':prezto:module:editor:info:keymap:primary:insert' format 'REPLY'
|
|
|
|
editor_info[overwrite]="$REPLY"
|
|
|
|
editor_info[overwrite]="$REPLY"
|
|
|
|
|
|
|
|
editor_info[vimode]="$REPLY"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|