Reputation: 17354
I've enabled Vim hotkeys in my terminal on OSX, and it works fine; next step - I have some custom settings for my Vim editor (.vimrc). Is there any way to customise this vim-terminal-hotkeys too?
Upvotes: 1
Views: 275
Reputation: 28169
You can do something like
$if mode=vi
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
set keymap vi-insert
"kk": vi-movement-mode
$endif
And for zsh just do
bindkey -M viins 'kk' vi-cmd-mode
A related question on super user on readline
Upvotes: 1