forked from pub-solar/os
ble.sh: revert hiding vim insert mode
This commit is contained in:
parent
c3acf50efe
commit
33a49edcf9
|
@ -76,21 +76,6 @@ in {
|
||||||
set -o vi
|
set -o vi
|
||||||
fi
|
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 {
|
function blerc/vim-mode-hook {
|
||||||
# Write your settings for vi/vim mode here
|
# Write your settings for vi/vim mode here
|
||||||
ble-bind -m vi_imap -f 'ENTER' 'vi_imap/complete'
|
ble-bind -m vi_imap -f 'ENTER' 'vi_imap/complete'
|
||||||
|
|
Loading…
Reference in a new issue