minor updates

This commit is contained in:
David Chen 2020-09-29 09:21:26 +08:00
parent e887c9fd8a
commit 0d7af920a0

View file

@ -13,12 +13,6 @@ bindkey -M vicmd "l" undo
bindkey -M vicmd "=" vi-repeat-search
bindkey -M vicmd "h" vi-forward-word-end
#function zle-line-init zle-keymap-select {
#RPS1="${${KEYMAP/vicmd/-- NOR --}/(main|viins)/-- INS --}"
#RPS2=$RPS1
#zle reset-prompt
#}
function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] || [[ $1 = 'block' ]]; then
echo -ne '\e[1 q'
@ -41,9 +35,5 @@ _fix_cursor() {
}
precmd_functions+=(_fix_cursor)
zle -N zle-line-init
zle -N zle-keymap-select
KEYTIMEOUT=1