mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
PLUGINS: vi-mode: Added extra vim-like bindings
- 'gg': go to the beginning of the buffer history - 'G': go to the end of the buffer history - 'u': properly undo multiple changes - '^R: while in normal mode re-do changes
This commit is contained in:
parent
230cb0be79
commit
814d426679
1 changed files with 6 additions and 0 deletions
|
|
@ -44,6 +44,12 @@ bindkey '^?' backward-delete-char
|
|||
bindkey '^h' backward-delete-char
|
||||
bindkey '^w' backward-kill-word
|
||||
|
||||
# Some extra vim like bindings
|
||||
bindkey -a 'gg' beginning-of-buffer-or-history
|
||||
bindkey -a 'G' end-of-buffer-or-history
|
||||
bindkey -a 'u' undo
|
||||
bindkey -a '^R' redo
|
||||
|
||||
# if mode indicator wasn't setup by theme, define default
|
||||
if [[ "$MODE_INDICATOR" == "" ]]; then
|
||||
MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue