mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
minor updates
This commit is contained in:
parent
e887c9fd8a
commit
0d7af920a0
1 changed files with 0 additions and 10 deletions
10
zsh/vi.zsh
10
zsh/vi.zsh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue