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:
Daniel Campoverde [alx741] 2015-02-20 12:22:11 -05:00
commit 814d426679

View file

@ -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%}"