mirror of
https://github.com/gotbletu/shownotes
synced 2024-11-05 00:00:51 +00:00
zsh vim mode update
This commit is contained in:
parent
919a310340
commit
242bc530ed
@ -23,17 +23,16 @@ zle -N zle-line-init
|
||||
zle -N zle-keymap-select
|
||||
|
||||
# add missing vim hotkeys
|
||||
# fixes backspace deletion issues
|
||||
# http://zshwiki.org/home/zle/vi-mode
|
||||
bindkey -a u undo
|
||||
bindkey -a '^R' redo
|
||||
bindkey '^?' backward-delete-char
|
||||
bindkey '^H' backward-delete-char
|
||||
bindkey -a '^T' redo
|
||||
bindkey '^?' backward-delete-char #backspace
|
||||
|
||||
# history search in vim mode
|
||||
# http://zshwiki.org./home/zle/bindkeys#why_isn_t_control-r_working_anymore
|
||||
bindkey -M viins '^s' history-incremental-search-backward
|
||||
bindkey -M vicmd '^s' history-incremental-search-backward
|
||||
# ctrl+r to search history
|
||||
bindkey -M viins '^r' history-incremental-search-backward
|
||||
bindkey -M vicmd '^r' history-incremental-search-backward
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user