ble.sh: revert hiding vim insert mode

This commit is contained in:
teutat3s 2024-05-12 18:10:31 +02:00
parent c3acf50efe
commit 33a49edcf9
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -76,21 +76,6 @@ in {
set -o vi
fi
# Don't show a mode name in the normal mode
function ferdinandyb/set-up-mode-indicator {
# Define \q{ferdinandyb/mode-indicator}
function ble/prompt/backslash:ferdinandyb/mode-indicator {
if local mode; ble/keymap:vi/script/get-mode; [[ $mode != i ]]; then
# call the built-in mode indicator
ble/prompt/process-prompt-string '\q{keymap:vi/mode-indicator}'
fi
}
# Specify \q{ferdinandyb/mode-indicator} in the mode-indicator prompt
bleopt prompt_vi_mode_indicator='\q{ferdinandyb/mode-indicator}'
}
blehook/eval-after-load keymap_vi ferdinandyb/set-up-mode-indicator
function blerc/vim-mode-hook {
# Write your settings for vi/vim mode here
ble-bind -m vi_imap -f 'ENTER' 'vi_imap/complete'