by amitutk · 11y ago · 0 comments
set editing-mode vi
$if mode=vi
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
set keymap vi-insert
"jj": vi-movement-mode
"\C-p": history-search-backward C-L: clear-screen
It makes sense for "gg" to be absent, as it is not a vi command. It is a "vimism". The typical vi command for moving to the first line is "1G".
bind -v
bind "^R" em-inc-search-prev
bind \\t rl_complete
(NOTE: I forget the source for this, it was something like oh-my-vim but I can't find exactly where it was from.)You really only need the first line for the apps to start in vi mode automatically.
Knowing the key combination to toggle is still useful for when pairing etc...